2 * This file is part of Cleanflight and Betaflight.
4 * Cleanflight and Betaflight are free software. You can redistribute
5 * this software and/or modify this software under the terms of the
6 * GNU General Public License as published by the Free Software
7 * Foundation, either version 3 of the License, or (at your option)
10 * Cleanflight and Betaflight are distributed in the hope that they
11 * will be useful, but WITHOUT ANY WARRANTY; without even the implied
12 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 * See the GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this software.
18 * If not, see <http://www.gnu.org/licenses/>.
26 #include "build/debug.h"
28 #include "blackbox/blackbox.h"
29 #include "blackbox/blackbox_fielddefs.h"
33 #include "common/utils.h"
34 #include "common/time.h"
36 #include "config/simplified_tuning.h"
38 #include "drivers/adc.h"
39 #include "drivers/bus_i2c.h"
40 #include "drivers/bus_spi.h"
41 #include "drivers/dshot_command.h"
42 #include "drivers/camera_control.h"
43 #include "drivers/light_led.h"
44 #include "drivers/mco.h"
45 #include "drivers/pinio.h"
46 #include "drivers/sdio.h"
47 #include "drivers/vtx_common.h"
48 #include "drivers/vtx_table.h"
50 #include "config/config.h"
51 #include "fc/controlrate_profile.h"
54 #include "fc/rc_adjustments.h"
55 #include "fc/rc_controls.h"
57 #include "flight/failsafe.h"
58 #include "flight/gps_rescue.h"
59 #include "flight/imu.h"
60 #include "flight/mixer.h"
61 #include "flight/pid.h"
62 #include "flight/position.h"
63 #include "flight/rpm_filter.h"
64 #include "flight/servos.h"
66 #include "io/beeper.h"
67 #include "io/dashboard.h"
68 #include "io/gimbal.h"
70 #include "io/ledstrip.h"
71 #include "io/serial.h"
73 #include "io/vtx_control.h"
74 #include "io/vtx_rtc6705.h"
79 #include "pg/beeper.h"
80 #include "pg/beeper_dev.h"
81 #include "pg/bus_i2c.h"
82 #include "pg/dashboard.h"
83 #include "pg/displayport_profiles.h"
84 #include "pg/dyn_notch.h"
86 #include "pg/gyrodev.h"
87 #include "pg/max7456.h"
91 #include "pg/pg_ids.h"
93 #include "pg/piniobox.h"
95 #include "pg/rx_pwm.h"
96 #include "pg/rx_spi.h"
97 #include "pg/rx_spi_cc2500.h"
98 #include "pg/sdcard.h"
100 #include "pg/vtx_io.h"
103 #include "pg/rcdevice.h"
104 #include "pg/stats.h"
105 #include "pg/board.h"
107 #include "rx/a7105_flysky.h"
108 #include "rx/cc2500_frsky_common.h"
109 #include "rx/cc2500_sfhss.h"
111 #include "rx/cyrf6936_spektrum.h"
113 #include "rx/spektrum.h"
115 #include "sensors/acceleration.h"
116 #include "sensors/barometer.h"
117 #include "sensors/battery.h"
118 #include "sensors/boardalignment.h"
119 #include "sensors/compass.h"
120 #include "sensors/esc_sensor.h"
121 #include "sensors/gyro.h"
122 #include "sensors/rangefinder.h"
124 #include "telemetry/frsky_hub.h"
125 #include "telemetry/ibus_shared.h"
126 #include "telemetry/telemetry.h"
128 #include "settings.h"
131 // Sensor names (used in lookup tables for *_hardware settings and in status command output)
132 // sync with accelerationSensor_e
133 const char * const lookupTableAccHardware
[] = {
134 "AUTO", "NONE", "ADXL345", "MPU6050", "MMA8452", "BMA280", "LSM303DLHC",
135 "MPU6000", "MPU6500", "MPU9250", "ICM20601", "ICM20602", "ICM20608G", "ICM20649", "ICM20689", "ICM42605", "ICM42688P",
136 "BMI160", "BMI270", "LSM6DSO", "FAKE"
139 // sync with gyroHardware_e
140 const char * const lookupTableGyroHardware
[] = {
141 "AUTO", "NONE", "MPU6050", "L3G4200D", "MPU3050", "L3GD20",
142 "MPU6000", "MPU6500", "MPU9250", "ICM20601", "ICM20602", "ICM20608G", "ICM20649", "ICM20689", "ICM42605", "ICM42688P",
143 "BMI160", "BMI270", "LSM6SDO", "FAKE"
146 #if defined(USE_SENSOR_NAMES) || defined(USE_BARO)
147 // sync with baroSensor_e
148 const char * const lookupTableBaroHardware
[] = {
149 "AUTO", "NONE", "BMP085", "MS5611", "BMP280", "LPS", "QMP6988", "BMP388", "DPS310"
152 #if defined(USE_SENSOR_NAMES) || defined(USE_MAG)
153 // sync with magSensor_e
154 const char * const lookupTableMagHardware
[] = {
155 "AUTO", "NONE", "HMC5883", "AK8975", "AK8963", "QMC5883", "LIS3MDL", "MAG_MPU925X_AK8963"
158 #if defined(USE_SENSOR_NAMES) || defined(USE_RANGEFINDER)
159 const char * const lookupTableRangefinderHardware
[] = {
160 "NONE", "HCSR04", "TFMINI", "TF02"
164 const char * const lookupTableOffOn
[] = {
168 static const char * const lookupTableCrashRecovery
[] = {
169 "OFF", "ON" ,"BEEP", "DISARM"
172 static const char * const lookupTableUnit
[] = {
173 "IMPERIAL", "METRIC", "BRITISH"
176 static const char * const lookupTableAlignment
[] = {
189 #ifdef USE_MULTI_GYRO
190 static const char * const lookupTableGyro
[] = {
191 "FIRST", "SECOND", "BOTH"
196 static const char * const lookupTableGPSProvider
[] = {
197 "NMEA", "UBLOX", "MSP"
200 static const char * const lookupTableGPSSBASMode
[] = {
201 "AUTO", "EGNOS", "WAAS", "MSAS", "GAGAN", "NONE"
204 static const char * const lookupTableGPSUBLOXMode
[] = {
205 "AIRBORNE", "PEDESTRIAN", "DYNAMIC"
210 static const char * const lookupTableGimbalMode
[] = {
216 static const char * const lookupTableBlackboxDevice
[] = {
217 "NONE", "SPIFLASH", "SDCARD", "SERIAL"
220 static const char * const lookupTableBlackboxMode
[] = {
221 "NORMAL", "MOTOR_TEST", "ALWAYS"
224 static const char * const lookupTableBlackboxSampleRate
[] = {
225 "1/1", "1/2", "1/4", "1/8", "1/16"
230 static const char * const lookupTableSerialRX
[] = {
250 // sync with rx_spi_protocol_e
251 static const char * const lookupTableRxSpi
[] = {
274 static const char * const lookupTableGyroHardwareLpf
[] = {
276 #ifdef USE_GYRO_DLPF_EXPERIMENTAL
281 #ifdef USE_CAMERA_CONTROL
282 static const char * const lookupTableCameraControlMode
[] = {
289 static const char * const lookupTablePwmProtocol
[] = {
290 "PWM", "ONESHOT125", "ONESHOT42", "MULTISHOT", "BRUSHED",
291 "DSHOT150", "DSHOT300", "DSHOT600", "PROSHOT1000",
295 static const char * const lookupTableLowpassType
[] = {
302 static const char * const lookupTableDtermLowpassType
[] = {
309 static const char * const lookupTableAntiGravityMode
[] = {
314 static const char * const lookupTableFailsafe
[] = {
315 "AUTO-LAND", "DROP", "GPS-RESCUE"
318 static const char * const lookupTableFailsafeSwitchMode
[] = {
319 "STAGE1", "KILL", "STAGE2"
322 static const char * const lookupTableBusType
[] = {
323 "NONE", "I2C", "SPI", "SLAVE",
324 #if defined(USE_SPI_GYRO) && defined(USE_I2C_GYRO)
330 static const char * const lookupTableMax7456Clock
[] = {
331 "HALF", "DEFAULT", "FULL"
335 #ifdef USE_RX_FRSKY_SPI
336 static const char * const lookupTableFrskySpiA1Source
[] = {
337 "VBAT", "EXTADC", "CONST"
341 #ifdef USE_GYRO_OVERFLOW_CHECK
342 static const char * const lookupTableGyroOverflowCheck
[] = {
347 static const char * const lookupTableRatesType
[] = {
348 "BETAFLIGHT", "RACEFLIGHT", "KISS", "ACTUAL", "QUICK"
352 static const char * const lookupOverclock
[] = {
354 #if defined(STM32F40_41xxx) || defined(STM32G4)
355 "192MHZ", "216MHZ", "240MHZ"
356 #elif defined(STM32F411xE)
358 #elif defined(STM32F7)
365 static const char * const lookupLedStripFormatRGB
[] = {
370 static const char * const lookupTableThrottleLimitType
[] = {
371 "OFF", "SCALE", "CLIP"
375 #ifdef USE_GPS_RESCUE
376 static const char * const lookupTableRescueSanityType
[] = {
377 "RESCUE_SANITY_OFF", "RESCUE_SANITY_ON", "RESCUE_SANITY_FS_ONLY"
379 const char * const lookupTableRescueAltitudeMode
[] = {
380 "MAX_ALT", "FIXED_ALT", "CURRENT_ALT"
384 #if defined(USE_MAX7456) || defined(USE_FRSKYOSD)
385 static const char * const lookupTableVideoSystem
[] = {
386 "AUTO", "PAL", "NTSC"
390 #if defined(USE_ITERM_RELAX)
391 const char * const lookupTableItermRelax
[] = {
392 "OFF", "RP", "RPY", "RP_INC", "RPY_INC"
394 const char * const lookupTableItermRelaxType
[] = {
399 #ifdef USE_ACRO_TRAINER
400 static const char * const lookupTableAcroTrainerDebug
[] = {
403 #endif // USE_ACRO_TRAINER
405 #ifdef USE_RC_SMOOTHING_FILTER
406 static const char * const lookupTableRcSmoothingDebug
[] = {
407 "ROLL", "PITCH", "YAW", "THROTTLE"
409 #endif // USE_RC_SMOOTHING_FILTER
411 #ifdef USE_VTX_COMMON
412 static const char * const lookupTableVtxLowPowerDisarm
[] = {
413 "OFF", "ON", "UNTIL_FIRST_ARM"
418 static const char * const lookupTableSdcardMode
[] = {
423 #ifdef USE_LAUNCH_CONTROL
424 static const char * const lookupTableLaunchControlMode
[] = {
425 "NORMAL", "PITCHONLY", "FULL"
430 static const char * const lookupTableTpaMode
[] = {
436 #ifdef USE_LED_STRIP_STATUS_MODE
437 static const char * const lookupTableLEDProfile
[] = {
438 "RACE", "BEACON", "STATUS"
441 static const char * const lookupTableLEDProfile
[] = {
447 const char * const lookupTableLedstripColors
[COLOR_COUNT
] = {
464 static const char * const lookupTableGyroFilterDebug
[] = {
465 "ROLL", "PITCH", "YAW"
468 static const char * const lookupTablePositionAltSource
[] = {
469 "DEFAULT", "BARO_ONLY", "GPS_ONLY"
472 static const char * const lookupTableOffOnAuto
[] = {
476 const char* const lookupTableFeedforwardAveraging
[] = {
477 "OFF", "2_POINT", "3_POINT", "4_POINT"
480 static const char* const lookupTableDshotBitbangedTimer
[] = {
481 "AUTO", "TIM1", "TIM8"
484 const char * const lookupTableOsdDisplayPortDevice
[] = {
485 "NONE", "AUTO", "MAX7456", "MSP", "FRSKYOSD"
489 static const char * const lookupTableOsdLogoOnArming
[] = {
490 "OFF", "ON", "FIRST_ARMING",
493 const char * const lookupTableSimplifiedTuningPidsMode
[] = {
497 static const char* const lookupTableMixerType
[] = {
498 "LEGACY", "LINEAR", "DYNAMIC",
502 const char * const lookupTableCMSMenuBackgroundType
[] = {
503 "TRANSPARENT", "BLACK", "GRAY", "LIGHT_GRAY"
507 #define LOOKUP_TABLE_ENTRY(name) { name, ARRAYLEN(name) }
509 const lookupTableEntry_t lookupTables
[] = {
510 LOOKUP_TABLE_ENTRY(lookupTableOffOn
),
511 LOOKUP_TABLE_ENTRY(lookupTableUnit
),
512 LOOKUP_TABLE_ENTRY(lookupTableAlignment
),
514 LOOKUP_TABLE_ENTRY(lookupTableGPSProvider
),
515 LOOKUP_TABLE_ENTRY(lookupTableGPSSBASMode
),
516 LOOKUP_TABLE_ENTRY(lookupTableGPSUBLOXMode
),
517 #ifdef USE_GPS_RESCUE
518 LOOKUP_TABLE_ENTRY(lookupTableRescueSanityType
),
519 LOOKUP_TABLE_ENTRY(lookupTableRescueAltitudeMode
),
523 LOOKUP_TABLE_ENTRY(lookupTableBlackboxDevice
),
524 LOOKUP_TABLE_ENTRY(lookupTableBlackboxMode
),
525 LOOKUP_TABLE_ENTRY(lookupTableBlackboxSampleRate
),
527 LOOKUP_TABLE_ENTRY(currentMeterSourceNames
),
528 LOOKUP_TABLE_ENTRY(voltageMeterSourceNames
),
530 LOOKUP_TABLE_ENTRY(lookupTableGimbalMode
),
533 LOOKUP_TABLE_ENTRY(lookupTableSerialRX
),
536 LOOKUP_TABLE_ENTRY(lookupTableRxSpi
),
538 LOOKUP_TABLE_ENTRY(lookupTableGyroHardwareLpf
),
539 LOOKUP_TABLE_ENTRY(lookupTableAccHardware
),
541 LOOKUP_TABLE_ENTRY(lookupTableBaroHardware
),
544 LOOKUP_TABLE_ENTRY(lookupTableMagHardware
),
546 LOOKUP_TABLE_ENTRY(debugModeNames
),
547 LOOKUP_TABLE_ENTRY(lookupTablePwmProtocol
),
548 LOOKUP_TABLE_ENTRY(lookupTableLowpassType
),
549 LOOKUP_TABLE_ENTRY(lookupTableDtermLowpassType
),
550 LOOKUP_TABLE_ENTRY(lookupTableAntiGravityMode
),
551 LOOKUP_TABLE_ENTRY(lookupTableFailsafe
),
552 LOOKUP_TABLE_ENTRY(lookupTableFailsafeSwitchMode
),
553 LOOKUP_TABLE_ENTRY(lookupTableCrashRecovery
),
554 #ifdef USE_CAMERA_CONTROL
555 LOOKUP_TABLE_ENTRY(lookupTableCameraControlMode
),
557 LOOKUP_TABLE_ENTRY(lookupTableBusType
),
559 LOOKUP_TABLE_ENTRY(lookupTableMax7456Clock
),
561 #ifdef USE_RX_FRSKY_SPI
562 LOOKUP_TABLE_ENTRY(lookupTableFrskySpiA1Source
),
564 #ifdef USE_RANGEFINDER
565 LOOKUP_TABLE_ENTRY(lookupTableRangefinderHardware
),
567 #ifdef USE_GYRO_OVERFLOW_CHECK
568 LOOKUP_TABLE_ENTRY(lookupTableGyroOverflowCheck
),
570 LOOKUP_TABLE_ENTRY(lookupTableRatesType
),
572 LOOKUP_TABLE_ENTRY(lookupOverclock
),
575 LOOKUP_TABLE_ENTRY(lookupLedStripFormatRGB
),
577 #ifdef USE_MULTI_GYRO
578 LOOKUP_TABLE_ENTRY(lookupTableGyro
),
580 LOOKUP_TABLE_ENTRY(lookupTableThrottleLimitType
),
581 #if defined(USE_MAX7456) || defined(USE_FRSKYOSD)
582 LOOKUP_TABLE_ENTRY(lookupTableVideoSystem
),
584 #if defined(USE_ITERM_RELAX)
585 LOOKUP_TABLE_ENTRY(lookupTableItermRelax
),
586 LOOKUP_TABLE_ENTRY(lookupTableItermRelaxType
),
588 #ifdef USE_ACRO_TRAINER
589 LOOKUP_TABLE_ENTRY(lookupTableAcroTrainerDebug
),
590 #endif // USE_ACRO_TRAINER
591 #ifdef USE_RC_SMOOTHING_FILTER
592 LOOKUP_TABLE_ENTRY(lookupTableRcSmoothingDebug
),
593 #endif // USE_RC_SMOOTHING_FILTER
594 #ifdef USE_VTX_COMMON
595 LOOKUP_TABLE_ENTRY(lookupTableVtxLowPowerDisarm
),
597 LOOKUP_TABLE_ENTRY(lookupTableGyroHardware
),
599 LOOKUP_TABLE_ENTRY(lookupTableSdcardMode
),
601 #ifdef USE_LAUNCH_CONTROL
602 LOOKUP_TABLE_ENTRY(lookupTableLaunchControlMode
),
605 LOOKUP_TABLE_ENTRY(lookupTableTpaMode
),
608 LOOKUP_TABLE_ENTRY(lookupTableLEDProfile
),
609 LOOKUP_TABLE_ENTRY(lookupTableLedstripColors
),
612 LOOKUP_TABLE_ENTRY(lookupTableGyroFilterDebug
),
614 LOOKUP_TABLE_ENTRY(lookupTablePositionAltSource
),
615 LOOKUP_TABLE_ENTRY(lookupTableOffOnAuto
),
616 LOOKUP_TABLE_ENTRY(lookupTableFeedforwardAveraging
),
617 LOOKUP_TABLE_ENTRY(lookupTableDshotBitbangedTimer
),
618 LOOKUP_TABLE_ENTRY(lookupTableOsdDisplayPortDevice
),
621 LOOKUP_TABLE_ENTRY(lookupTableOsdLogoOnArming
),
623 LOOKUP_TABLE_ENTRY(lookupTableMixerType
),
624 LOOKUP_TABLE_ENTRY(lookupTableSimplifiedTuningPidsMode
),
626 LOOKUP_TABLE_ENTRY(lookupTableCMSMenuBackgroundType
),
630 #undef LOOKUP_TABLE_ENTRY
632 const clivalue_t valueTable
[] = {
634 { "gyro_hardware_lpf", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_GYRO_HARDWARE_LPF
}, PG_GYRO_CONFIG
, offsetof(gyroConfig_t
, gyro_hardware_lpf
) },
635 #if defined(USE_GYRO_SPI_ICM20649)
636 { "gyro_high_range", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_GYRO_CONFIG
, offsetof(gyroConfig_t
, gyro_high_fsr
) },
639 { "gyro_lpf1_type", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_GYRO_LPF_TYPE
}, PG_GYRO_CONFIG
, offsetof(gyroConfig_t
, gyro_lpf1_type
) },
640 { "gyro_lpf1_static_hz", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, LPF_MAX_HZ
}, PG_GYRO_CONFIG
, offsetof(gyroConfig_t
, gyro_lpf1_static_hz
) },
642 { "gyro_lpf2_type", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_GYRO_LPF_TYPE
}, PG_GYRO_CONFIG
, offsetof(gyroConfig_t
, gyro_lpf2_type
) },
643 { "gyro_lpf2_static_hz", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, LPF_MAX_HZ
}, PG_GYRO_CONFIG
, offsetof(gyroConfig_t
, gyro_lpf2_static_hz
) },
645 { "gyro_notch1_hz", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, LPF_MAX_HZ
}, PG_GYRO_CONFIG
, offsetof(gyroConfig_t
, gyro_soft_notch_hz_1
) },
646 { "gyro_notch1_cutoff", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, LPF_MAX_HZ
}, PG_GYRO_CONFIG
, offsetof(gyroConfig_t
, gyro_soft_notch_cutoff_1
) },
647 { "gyro_notch2_hz", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, LPF_MAX_HZ
}, PG_GYRO_CONFIG
, offsetof(gyroConfig_t
, gyro_soft_notch_hz_2
) },
648 { "gyro_notch2_cutoff", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, LPF_MAX_HZ
}, PG_GYRO_CONFIG
, offsetof(gyroConfig_t
, gyro_soft_notch_cutoff_2
) },
650 { "gyro_calib_duration", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 50, 3000 }, PG_GYRO_CONFIG
, offsetof(gyroConfig_t
, gyroCalibrationDuration
) },
651 { "gyro_calib_noise_limit", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 200 }, PG_GYRO_CONFIG
, offsetof(gyroConfig_t
, gyroMovementCalibrationThreshold
) },
652 { "gyro_offset_yaw", VAR_INT16
| MASTER_VALUE
, .config
.minmax
= { -1000, 1000 }, PG_GYRO_CONFIG
, offsetof(gyroConfig_t
, gyro_offset_yaw
) },
653 #ifdef USE_GYRO_OVERFLOW_CHECK
654 { "gyro_overflow_detect", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_GYRO_OVERFLOW_CHECK
}, PG_GYRO_CONFIG
, offsetof(gyroConfig_t
, checkOverflow
) },
656 #ifdef USE_YAW_SPIN_RECOVERY
657 { "yaw_spin_recovery", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON_AUTO
}, PG_GYRO_CONFIG
, offsetof(gyroConfig_t
, yaw_spin_recovery
) },
658 { "yaw_spin_threshold", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { YAW_SPIN_RECOVERY_THRESHOLD_MIN
, YAW_SPIN_RECOVERY_THRESHOLD_MAX
}, PG_GYRO_CONFIG
, offsetof(gyroConfig_t
, yaw_spin_threshold
) },
661 #ifdef USE_MULTI_GYRO
662 { "gyro_to_use", VAR_UINT8
| HARDWARE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_GYRO
}, PG_GYRO_CONFIG
, offsetof(gyroConfig_t
, gyro_to_use
) },
664 #if defined(USE_DYN_NOTCH_FILTER)
665 { "dyn_notch_count", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 1, DYN_NOTCH_COUNT_MAX
}, PG_DYN_NOTCH_CONFIG
, offsetof(dynNotchConfig_t
, dyn_notch_count
) },
666 { "dyn_notch_q", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 1, 1000 }, PG_DYN_NOTCH_CONFIG
, offsetof(dynNotchConfig_t
, dyn_notch_q
) },
667 { "dyn_notch_min_hz", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 60, 250 }, PG_DYN_NOTCH_CONFIG
, offsetof(dynNotchConfig_t
, dyn_notch_min_hz
) },
668 { "dyn_notch_max_hz", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 200, 1000 }, PG_DYN_NOTCH_CONFIG
, offsetof(dynNotchConfig_t
, dyn_notch_max_hz
) },
671 { "gyro_lpf1_dyn_min_hz", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, DYN_LPF_MAX_HZ
}, PG_GYRO_CONFIG
, offsetof(gyroConfig_t
, gyro_lpf1_dyn_min_hz
) },
672 { "gyro_lpf1_dyn_max_hz", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, DYN_LPF_MAX_HZ
}, PG_GYRO_CONFIG
, offsetof(gyroConfig_t
, gyro_lpf1_dyn_max_hz
) },
673 { "gyro_lpf1_dyn_expo", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 10 }, PG_GYRO_CONFIG
, offsetof(gyroConfig_t
, gyro_lpf1_dyn_expo
) },
675 { "gyro_filter_debug_axis", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_GYRO_FILTER_DEBUG
}, PG_GYRO_CONFIG
, offsetof(gyroConfig_t
, gyro_filter_debug_axis
) },
677 // PG_ACCELEROMETER_CONFIG
679 { "acc_hardware", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_ACC_HARDWARE
}, PG_ACCELEROMETER_CONFIG
, offsetof(accelerometerConfig_t
, acc_hardware
) },
680 #if defined(USE_GYRO_SPI_ICM20649)
681 { "acc_high_range", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_ACCELEROMETER_CONFIG
, offsetof(accelerometerConfig_t
, acc_high_fsr
) },
683 { "acc_lpf_hz", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 400 }, PG_ACCELEROMETER_CONFIG
, offsetof(accelerometerConfig_t
, acc_lpf_hz
) },
684 { "acc_trim_pitch", VAR_INT16
| MASTER_VALUE
, .config
.minmax
= { -300, 300 }, PG_ACCELEROMETER_CONFIG
, offsetof(accelerometerConfig_t
, accelerometerTrims
.values
.pitch
) },
685 { "acc_trim_roll", VAR_INT16
| MASTER_VALUE
, .config
.minmax
= { -300, 300 }, PG_ACCELEROMETER_CONFIG
, offsetof(accelerometerConfig_t
, accelerometerTrims
.values
.roll
) },
687 // 4 elements are output for the ACC calibration - The 3 axis values and the 4th representing whether calibration has been performed
688 { "acc_calibration", VAR_INT16
| MASTER_VALUE
| MODE_ARRAY
, .config
.array
.length
= 4, PG_ACCELEROMETER_CONFIG
, offsetof(accelerometerConfig_t
, accZero
.raw
) },
693 { "align_mag", VAR_UINT8
| HARDWARE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_ALIGNMENT
}, PG_COMPASS_CONFIG
, offsetof(compassConfig_t
, mag_alignment
) },
694 { "mag_align_roll", VAR_INT16
| HARDWARE_VALUE
, .config
.minmax
= { -3600, 3600 }, PG_COMPASS_CONFIG
, offsetof(compassConfig_t
, mag_customAlignment
.roll
) },
695 { "mag_align_pitch", VAR_INT16
| HARDWARE_VALUE
, .config
.minmax
= { -3600, 3600 }, PG_COMPASS_CONFIG
, offsetof(compassConfig_t
, mag_customAlignment
.pitch
) },
696 { "mag_align_yaw", VAR_INT16
| HARDWARE_VALUE
, .config
.minmax
= { -3600, 3600 }, PG_COMPASS_CONFIG
, offsetof(compassConfig_t
, mag_customAlignment
.yaw
) },
697 { "mag_bustype", VAR_UINT8
| HARDWARE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_BUS_TYPE
}, PG_COMPASS_CONFIG
, offsetof(compassConfig_t
, mag_busType
) },
698 { "mag_i2c_device", VAR_UINT8
| HARDWARE_VALUE
, .config
.minmaxUnsigned
= { 0, I2CDEV_COUNT
}, PG_COMPASS_CONFIG
, offsetof(compassConfig_t
, mag_i2c_device
) },
699 { "mag_i2c_address", VAR_UINT8
| HARDWARE_VALUE
, .config
.minmaxUnsigned
= { 0, I2C_ADDR7_MAX
}, PG_COMPASS_CONFIG
, offsetof(compassConfig_t
, mag_i2c_address
) },
700 { "mag_spi_device", VAR_UINT8
| HARDWARE_VALUE
, .config
.minmaxUnsigned
= { 0, SPIDEV_COUNT
}, PG_COMPASS_CONFIG
, offsetof(compassConfig_t
, mag_spi_device
) },
701 { "mag_hardware", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_MAG_HARDWARE
}, PG_COMPASS_CONFIG
, offsetof(compassConfig_t
, mag_hardware
) },
702 { "mag_calibration", VAR_INT16
| MASTER_VALUE
| MODE_ARRAY
, .config
.array
.length
= XYZ_AXIS_COUNT
, PG_COMPASS_CONFIG
, offsetof(compassConfig_t
, magZero
.raw
) },
705 // PG_BAROMETER_CONFIG
707 { "baro_bustype", VAR_UINT8
| HARDWARE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_BUS_TYPE
}, PG_BAROMETER_CONFIG
, offsetof(barometerConfig_t
, baro_busType
) },
708 { "baro_spi_device", VAR_UINT8
| HARDWARE_VALUE
, .config
.minmaxUnsigned
= { 0, 5 }, PG_BAROMETER_CONFIG
, offsetof(barometerConfig_t
, baro_spi_device
) },
709 { "baro_i2c_device", VAR_UINT8
| HARDWARE_VALUE
, .config
.minmaxUnsigned
= { 0, 5 }, PG_BAROMETER_CONFIG
, offsetof(barometerConfig_t
, baro_i2c_device
) },
710 { "baro_i2c_address", VAR_UINT8
| HARDWARE_VALUE
, .config
.minmaxUnsigned
= { 0, I2C_ADDR7_MAX
}, PG_BAROMETER_CONFIG
, offsetof(barometerConfig_t
, baro_i2c_address
) },
711 { "baro_hardware", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_BARO_HARDWARE
}, PG_BAROMETER_CONFIG
, offsetof(barometerConfig_t
, baro_hardware
) },
712 { "baro_tab_size", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 1, BARO_SAMPLE_COUNT_MAX
}, PG_BAROMETER_CONFIG
, offsetof(barometerConfig_t
, baro_sample_count
) },
713 { "baro_noise_lpf", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 1000 }, PG_BAROMETER_CONFIG
, offsetof(barometerConfig_t
, baro_noise_lpf
) },
714 { "baro_cf_vel", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 1000 }, PG_BAROMETER_CONFIG
, offsetof(barometerConfig_t
, baro_cf_vel
) },
718 { "mid_rc", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 1200, 1700 }, PG_RX_CONFIG
, offsetof(rxConfig_t
, midrc
) },
719 { "min_check", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { PWM_PULSE_MIN
, PWM_PULSE_MAX
}, PG_RX_CONFIG
, offsetof(rxConfig_t
, mincheck
) },
720 { "max_check", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { PWM_PULSE_MIN
, PWM_PULSE_MAX
}, PG_RX_CONFIG
, offsetof(rxConfig_t
, maxcheck
) },
721 { "rssi_channel", VAR_INT8
| MASTER_VALUE
, .config
.minmax
= { 0, MAX_SUPPORTED_RC_CHANNEL_COUNT
}, PG_RX_CONFIG
, offsetof(rxConfig_t
, rssi_channel
) },
722 { "rssi_src_frame_errors", VAR_INT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_RX_CONFIG
, offsetof(rxConfig_t
, rssi_src_frame_errors
) },
723 { "rssi_scale", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { RSSI_SCALE_MIN
, RSSI_SCALE_MAX
}, PG_RX_CONFIG
, offsetof(rxConfig_t
, rssi_scale
) },
724 { "rssi_offset", VAR_INT8
| MASTER_VALUE
, .config
.minmax
= { -100, 100 }, PG_RX_CONFIG
, offsetof(rxConfig_t
, rssi_offset
) },
725 { "rssi_invert", VAR_INT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_RX_CONFIG
, offsetof(rxConfig_t
, rssi_invert
) },
726 { "rssi_src_frame_lpf_period", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, UINT8_MAX
}, PG_RX_CONFIG
, offsetof(rxConfig_t
, rssi_src_frame_lpf_period
) },
728 #ifdef USE_RC_SMOOTHING_FILTER
729 { "rc_smoothing", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_RX_CONFIG
, offsetof(rxConfig_t
, rc_smoothing_mode
) },
730 { "rc_smoothing_auto_factor", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { RC_SMOOTHING_AUTO_FACTOR_MIN
, RC_SMOOTHING_AUTO_FACTOR_MAX
}, PG_RX_CONFIG
, offsetof(rxConfig_t
, rc_smoothing_auto_factor_rpy
) },
731 { "rc_smoothing_auto_factor_throttle", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { RC_SMOOTHING_AUTO_FACTOR_MIN
, RC_SMOOTHING_AUTO_FACTOR_MAX
}, PG_RX_CONFIG
, offsetof(rxConfig_t
, rc_smoothing_auto_factor_throttle
) },
732 { "rc_smoothing_setpoint_cutoff", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, UINT8_MAX
}, PG_RX_CONFIG
, offsetof(rxConfig_t
, rc_smoothing_setpoint_cutoff
) },
733 { "rc_smoothing_feedforward_cutoff",VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, UINT8_MAX
}, PG_RX_CONFIG
, offsetof(rxConfig_t
, rc_smoothing_feedforward_cutoff
) },
734 { "rc_smoothing_throttle_cutoff", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, UINT8_MAX
}, PG_RX_CONFIG
, offsetof(rxConfig_t
, rc_smoothing_throttle_cutoff
) },
735 { "rc_smoothing_debug_axis", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_RC_SMOOTHING_DEBUG
}, PG_RX_CONFIG
, offsetof(rxConfig_t
, rc_smoothing_debug_axis
) },
736 #endif // USE_RC_SMOOTHING_FILTER
738 { "fpv_mix_degrees", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 90 }, PG_RX_CONFIG
, offsetof(rxConfig_t
, fpvCamAngleDegrees
) },
739 { "max_aux_channels", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, MAX_AUX_CHANNEL_COUNT
}, PG_RX_CONFIG
, offsetof(rxConfig_t
, max_aux_channel
) },
741 { "serialrx_provider", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_SERIAL_RX
}, PG_RX_CONFIG
, offsetof(rxConfig_t
, serialrx_provider
) },
742 { "serialrx_inverted", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_RX_CONFIG
, offsetof(rxConfig_t
, serialrx_inverted
) },
744 #ifdef USE_SPEKTRUM_BIND
745 { "spektrum_sat_bind", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { SPEKTRUM_SAT_BIND_DISABLED
, SPEKTRUM_SAT_BIND_MAX
}, PG_RX_CONFIG
, offsetof(rxConfig_t
, spektrum_sat_bind
) },
746 { "spektrum_sat_bind_autoreset",VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_RX_CONFIG
, offsetof(rxConfig_t
, spektrum_sat_bind_autoreset
) },
748 #ifdef USE_SERIALRX_SRXL2
749 { "srxl2_unit_id", VAR_UINT8
| MASTER_VALUE
, .config
.minmax
= { 0, 0xf }, PG_RX_CONFIG
, offsetof(rxConfig_t
, srxl2_unit_id
) },
750 { "srxl2_baud_fast", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_RX_CONFIG
, offsetof(rxConfig_t
, srxl2_baud_fast
) },
752 #if defined(USE_SERIALRX_SBUS)
753 { "sbus_baud_fast", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_RX_CONFIG
, offsetof(rxConfig_t
, sbus_baud_fast
) },
755 #if defined(USE_SERIALRX_CRSF)
756 { "crsf_use_rx_snr", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_RX_CONFIG
, offsetof(rxConfig_t
, crsf_use_rx_snr
) },
758 { "airmode_start_throttle_percent", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 100 }, PG_RX_CONFIG
, offsetof(rxConfig_t
, airModeActivateThreshold
) },
759 { "rx_min_usec", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { PWM_PULSE_MIN
, PWM_PULSE_MAX
}, PG_RX_CONFIG
, offsetof(rxConfig_t
, rx_min_usec
) },
760 { "rx_max_usec", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { PWM_PULSE_MIN
, PWM_PULSE_MAX
}, PG_RX_CONFIG
, offsetof(rxConfig_t
, rx_max_usec
) },
761 { "serialrx_halfduplex", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_RX_CONFIG
, offsetof(rxConfig_t
, halfDuplex
) },
762 #if defined(USE_RX_MSP_OVERRIDE)
763 { "msp_override_channels_mask", VAR_UINT32
| MASTER_VALUE
, .config
.u32Max
= (1 << MAX_SUPPORTED_RC_CHANNEL_COUNT
) - 1, PG_RX_CONFIG
, offsetof(rxConfig_t
, msp_override_channels_mask
)},
766 { "rx_spi_protocol", VAR_UINT8
| HARDWARE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_RX_SPI
}, PG_RX_SPI_CONFIG
, offsetof(rxSpiConfig_t
, rx_spi_protocol
) },
767 { "rx_spi_bus", VAR_UINT8
| HARDWARE_VALUE
, .config
.minmaxUnsigned
= { 0, SPIDEV_COUNT
}, PG_RX_SPI_CONFIG
, offsetof(rxSpiConfig_t
, spibus
) },
768 { "rx_spi_led_inversion", VAR_UINT8
| HARDWARE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_RX_SPI_CONFIG
, offsetof(rxSpiConfig_t
, ledInversion
) },
773 { "adc_device", VAR_INT8
| HARDWARE_VALUE
, .config
.minmax
= { 0, ADCDEV_COUNT
}, PG_ADC_CONFIG
, offsetof(adcConfig_t
, device
) },
774 { "adc_vrefint_calibration", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 2000 }, PG_ADC_CONFIG
, offsetof(adcConfig_t
, vrefIntCalibration
) },
775 { "adc_tempsensor_calibration30", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 2000 }, PG_ADC_CONFIG
, offsetof(adcConfig_t
, tempSensorCalibration1
) },
776 { "adc_tempsensor_calibration110", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 2000 }, PG_ADC_CONFIG
, offsetof(adcConfig_t
, tempSensorCalibration2
) },
781 { "input_filtering_mode", VAR_INT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_PWM_CONFIG
, offsetof(pwmConfig_t
, inputFilteringMode
) },
784 // PG_BLACKBOX_CONFIG
786 { "blackbox_sample_rate", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_BLACKBOX_SAMPLE_RATE
}, PG_BLACKBOX_CONFIG
, offsetof(blackboxConfig_t
, sample_rate
) },
787 { "blackbox_device", VAR_UINT8
| HARDWARE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_BLACKBOX_DEVICE
}, PG_BLACKBOX_CONFIG
, offsetof(blackboxConfig_t
, device
) },
788 { "blackbox_disable_pids", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= FLIGHT_LOG_FIELD_SELECT_PID
, PG_BLACKBOX_CONFIG
, offsetof(blackboxConfig_t
, fields_disabled_mask
) },
789 { "blackbox_disable_rc", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= FLIGHT_LOG_FIELD_SELECT_RC_COMMANDS
, PG_BLACKBOX_CONFIG
, offsetof(blackboxConfig_t
, fields_disabled_mask
) },
790 { "blackbox_disable_setpoint", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= FLIGHT_LOG_FIELD_SELECT_SETPOINT
, PG_BLACKBOX_CONFIG
, offsetof(blackboxConfig_t
, fields_disabled_mask
) },
791 { "blackbox_disable_bat", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= FLIGHT_LOG_FIELD_SELECT_BATTERY
, PG_BLACKBOX_CONFIG
, offsetof(blackboxConfig_t
, fields_disabled_mask
) },
793 { "blackbox_disable_mag", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= FLIGHT_LOG_FIELD_SELECT_MAG
, PG_BLACKBOX_CONFIG
, offsetof(blackboxConfig_t
, fields_disabled_mask
) },
795 #if defined(USE_BARO) || defined(USE_RANGEFINDER)
796 { "blackbox_disable_alt", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= FLIGHT_LOG_FIELD_SELECT_ALTITUDE
, PG_BLACKBOX_CONFIG
, offsetof(blackboxConfig_t
, fields_disabled_mask
) },
798 { "blackbox_disable_rssi", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= FLIGHT_LOG_FIELD_SELECT_RSSI
, PG_BLACKBOX_CONFIG
, offsetof(blackboxConfig_t
, fields_disabled_mask
) },
799 { "blackbox_disable_gyro", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= FLIGHT_LOG_FIELD_SELECT_GYRO
, PG_BLACKBOX_CONFIG
, offsetof(blackboxConfig_t
, fields_disabled_mask
) },
801 { "blackbox_disable_acc", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= FLIGHT_LOG_FIELD_SELECT_ACC
, PG_BLACKBOX_CONFIG
, offsetof(blackboxConfig_t
, fields_disabled_mask
) },
803 { "blackbox_disable_debug", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= FLIGHT_LOG_FIELD_SELECT_DEBUG_LOG
, PG_BLACKBOX_CONFIG
, offsetof(blackboxConfig_t
, fields_disabled_mask
) },
804 { "blackbox_disable_motors", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= FLIGHT_LOG_FIELD_SELECT_MOTOR
, PG_BLACKBOX_CONFIG
, offsetof(blackboxConfig_t
, fields_disabled_mask
) },
806 { "blackbox_disable_gps", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= FLIGHT_LOG_FIELD_SELECT_GPS
, PG_BLACKBOX_CONFIG
, offsetof(blackboxConfig_t
, fields_disabled_mask
) },
808 { "blackbox_mode", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_BLACKBOX_MODE
}, PG_BLACKBOX_CONFIG
, offsetof(blackboxConfig_t
, mode
) },
812 { "min_throttle", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { PWM_PULSE_MIN
, PWM_PULSE_MAX
}, PG_MOTOR_CONFIG
, offsetof(motorConfig_t
, minthrottle
) },
813 { "max_throttle", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { PWM_PULSE_MIN
, PWM_PULSE_MAX
}, PG_MOTOR_CONFIG
, offsetof(motorConfig_t
, maxthrottle
) },
814 { "min_command", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { PWM_PULSE_MIN
, PWM_PULSE_MAX
}, PG_MOTOR_CONFIG
, offsetof(motorConfig_t
, mincommand
) },
816 { "dshot_idle_value", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 2000 }, PG_MOTOR_CONFIG
, offsetof(motorConfig_t
, digitalIdleOffsetValue
) },
817 #ifdef USE_DSHOT_DMAR
818 { "dshot_burst", VAR_UINT8
| HARDWARE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON_AUTO
}, PG_MOTOR_CONFIG
, offsetof(motorConfig_t
, dev
.useBurstDshot
) },
820 #ifdef USE_DSHOT_TELEMETRY
821 { "dshot_bidir", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_MOTOR_CONFIG
, offsetof(motorConfig_t
, dev
.useDshotTelemetry
) },
823 #ifdef USE_DSHOT_BITBANG
824 { "dshot_bitbang", VAR_UINT8
| HARDWARE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON_AUTO
}, PG_MOTOR_CONFIG
, offsetof(motorConfig_t
, dev
.useDshotBitbang
) },
825 { "dshot_bitbang_timer", VAR_UINT8
| HARDWARE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_DSHOT_BITBANGED_TIMER
}, PG_MOTOR_CONFIG
, offsetof(motorConfig_t
, dev
.useDshotBitbangedTimer
) },
828 { "use_unsynced_pwm", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_MOTOR_CONFIG
, offsetof(motorConfig_t
, dev
.useUnsyncedPwm
) },
829 { "motor_pwm_protocol", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_MOTOR_PWM_PROTOCOL
}, PG_MOTOR_CONFIG
, offsetof(motorConfig_t
, dev
.motorPwmProtocol
) },
830 { "motor_pwm_rate", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 200, 32000 }, PG_MOTOR_CONFIG
, offsetof(motorConfig_t
, dev
.motorPwmRate
) },
831 { "motor_pwm_inversion", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_MOTOR_CONFIG
, offsetof(motorConfig_t
, dev
.motorPwmInversion
) },
832 { "motor_poles", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 4, UINT8_MAX
}, PG_MOTOR_CONFIG
, offsetof(motorConfig_t
, motorPoleCount
) },
833 { "motor_output_reordering", VAR_UINT8
| MASTER_VALUE
| MODE_ARRAY
, .config
.array
.length
= MAX_SUPPORTED_MOTORS
, PG_MOTOR_CONFIG
, offsetof(motorConfig_t
, dev
.motorOutputReordering
)},
835 // PG_THROTTLE_CORRECTION_CONFIG
836 { "thr_corr_value", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 150 }, PG_THROTTLE_CORRECTION_CONFIG
, offsetof(throttleCorrectionConfig_t
, throttle_correction_value
) },
837 { "thr_corr_angle", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 1, 900 }, PG_THROTTLE_CORRECTION_CONFIG
, offsetof(throttleCorrectionConfig_t
, throttle_correction_angle
) },
839 // PG_FAILSAFE_CONFIG
840 { "failsafe_delay", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 200 }, PG_FAILSAFE_CONFIG
, offsetof(failsafeConfig_t
, failsafe_delay
) },
841 { "failsafe_off_delay", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 200 }, PG_FAILSAFE_CONFIG
, offsetof(failsafeConfig_t
, failsafe_off_delay
) },
842 { "failsafe_throttle", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { PWM_PULSE_MIN
, PWM_PULSE_MAX
}, PG_FAILSAFE_CONFIG
, offsetof(failsafeConfig_t
, failsafe_throttle
) },
843 { "failsafe_switch_mode", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_FAILSAFE_SWITCH_MODE
}, PG_FAILSAFE_CONFIG
, offsetof(failsafeConfig_t
, failsafe_switch_mode
) },
844 { "failsafe_throttle_low_delay",VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 300 }, PG_FAILSAFE_CONFIG
, offsetof(failsafeConfig_t
, failsafe_throttle_low_delay
) },
845 { "failsafe_procedure", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_FAILSAFE
}, PG_FAILSAFE_CONFIG
, offsetof(failsafeConfig_t
, failsafe_procedure
) },
846 { "failsafe_recovery_delay", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 200 }, PG_FAILSAFE_CONFIG
, offsetof(failsafeConfig_t
, failsafe_recovery_delay
) },
847 { "failsafe_stick_threshold", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 50 }, PG_FAILSAFE_CONFIG
, offsetof(failsafeConfig_t
, failsafe_stick_threshold
) },
849 // PG_BOARDALIGNMENT_CONFIG
850 { "align_board_roll", VAR_INT16
| MASTER_VALUE
, .config
.minmax
= { -180, 360 }, PG_BOARD_ALIGNMENT
, offsetof(boardAlignment_t
, rollDegrees
) },
851 { "align_board_pitch", VAR_INT16
| MASTER_VALUE
, .config
.minmax
= { -180, 360 }, PG_BOARD_ALIGNMENT
, offsetof(boardAlignment_t
, pitchDegrees
) },
852 { "align_board_yaw", VAR_INT16
| MASTER_VALUE
, .config
.minmax
= { -180, 360 }, PG_BOARD_ALIGNMENT
, offsetof(boardAlignment_t
, yawDegrees
) },
856 { "gimbal_mode", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_GIMBAL_MODE
}, PG_GIMBAL_CONFIG
, offsetof(gimbalConfig_t
, mode
) },
860 { "bat_capacity", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 20000 }, PG_BATTERY_CONFIG
, offsetof(batteryConfig_t
, batteryCapacity
) },
861 { "vbat_max_cell_voltage", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { VBAT_CELL_VOTAGE_RANGE_MIN
, VBAT_CELL_VOTAGE_RANGE_MAX
}, PG_BATTERY_CONFIG
, offsetof(batteryConfig_t
, vbatmaxcellvoltage
) },
862 { "vbat_full_cell_voltage", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { VBAT_CELL_VOTAGE_RANGE_MIN
, VBAT_CELL_VOTAGE_RANGE_MAX
}, PG_BATTERY_CONFIG
, offsetof(batteryConfig_t
, vbatfullcellvoltage
) },
863 { "vbat_min_cell_voltage", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { VBAT_CELL_VOTAGE_RANGE_MIN
, VBAT_CELL_VOTAGE_RANGE_MAX
}, PG_BATTERY_CONFIG
, offsetof(batteryConfig_t
, vbatmincellvoltage
) },
864 { "vbat_warning_cell_voltage", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { VBAT_CELL_VOTAGE_RANGE_MIN
, VBAT_CELL_VOTAGE_RANGE_MAX
}, PG_BATTERY_CONFIG
, offsetof(batteryConfig_t
, vbatwarningcellvoltage
) },
865 { "vbat_hysteresis", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 250 }, PG_BATTERY_CONFIG
, offsetof(batteryConfig_t
, vbathysteresis
) },
866 { "current_meter", VAR_UINT8
| HARDWARE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_CURRENT_METER
}, PG_BATTERY_CONFIG
, offsetof(batteryConfig_t
, currentMeterSource
) },
867 { "battery_meter", VAR_UINT8
| HARDWARE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_VOLTAGE_METER
}, PG_BATTERY_CONFIG
, offsetof(batteryConfig_t
, voltageMeterSource
) },
868 { "vbat_detect_cell_voltage", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 2000 }, PG_BATTERY_CONFIG
, offsetof(batteryConfig_t
, vbatnotpresentcellvoltage
) },
869 { "use_vbat_alerts", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_BATTERY_CONFIG
, offsetof(batteryConfig_t
, useVBatAlerts
) },
870 { "use_cbat_alerts", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_BATTERY_CONFIG
, offsetof(batteryConfig_t
, useConsumptionAlerts
) },
871 { "cbat_alert_percent", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 100 }, PG_BATTERY_CONFIG
, offsetof(batteryConfig_t
, consumptionWarningPercentage
) },
872 { "vbat_cutoff_percent", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 100 }, PG_BATTERY_CONFIG
, offsetof(batteryConfig_t
, lvcPercentage
) },
873 { "force_battery_cell_count", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 24 }, PG_BATTERY_CONFIG
, offsetof(batteryConfig_t
, forceBatteryCellCount
) },
874 { "vbat_display_lpf_period", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 1, UINT8_MAX
}, PG_BATTERY_CONFIG
, offsetof(batteryConfig_t
, vbatDisplayLpfPeriod
) },
875 #if defined(USE_BATTERY_VOLTAGE_SAG_COMPENSATION)
876 { "vbat_sag_lpf_period", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 1, UINT8_MAX
}, PG_BATTERY_CONFIG
, offsetof(batteryConfig_t
, vbatSagLpfPeriod
) },
878 { "ibat_lpf_period", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, UINT8_MAX
}, PG_BATTERY_CONFIG
, offsetof(batteryConfig_t
, ibatLpfPeriod
) },
879 { "vbat_duration_for_warning", VAR_UINT8
| MASTER_VALUE
, .config
.minmax
= { 0, 150 }, PG_BATTERY_CONFIG
, offsetof(batteryConfig_t
, vbatDurationForWarning
) },
880 { "vbat_duration_for_critical", VAR_UINT8
| MASTER_VALUE
, .config
.minmax
= { 0, 150 }, PG_BATTERY_CONFIG
, offsetof(batteryConfig_t
, vbatDurationForCritical
) },
882 // PG_VOLTAGE_SENSOR_ADC_CONFIG
883 { "vbat_scale", VAR_UINT8
| HARDWARE_VALUE
, .config
.minmaxUnsigned
= { VBAT_SCALE_MIN
, VBAT_SCALE_MAX
}, PG_VOLTAGE_SENSOR_ADC_CONFIG
, offsetof(voltageSensorADCConfig_t
, vbatscale
) },
884 { "vbat_divider", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { VBAT_DIVIDER_MIN
, VBAT_DIVIDER_MAX
}, PG_VOLTAGE_SENSOR_ADC_CONFIG
, offsetof(voltageSensorADCConfig_t
, vbatresdivval
) },
885 { "vbat_multiplier", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { VBAT_MULTIPLIER_MIN
, VBAT_MULTIPLIER_MAX
}, PG_VOLTAGE_SENSOR_ADC_CONFIG
, offsetof(voltageSensorADCConfig_t
, vbatresdivmultiplier
) },
887 // PG_CURRENT_SENSOR_ADC_CONFIG
888 { "ibata_scale", VAR_INT16
| HARDWARE_VALUE
, .config
.minmax
= { -16000, 16000 }, PG_CURRENT_SENSOR_ADC_CONFIG
, offsetof(currentSensorADCConfig_t
, scale
) },
889 { "ibata_offset", VAR_INT16
| MASTER_VALUE
, .config
.minmax
= { -32000, 32000 }, PG_CURRENT_SENSOR_ADC_CONFIG
, offsetof(currentSensorADCConfig_t
, offset
) },
890 // PG_CURRENT_SENSOR_ADC_CONFIG
891 #ifdef USE_VIRTUAL_CURRENT_METER
892 { "ibatv_scale", VAR_INT16
| MASTER_VALUE
, .config
.minmax
= { -16000, 16000 }, PG_CURRENT_SENSOR_VIRTUAL_CONFIG
, offsetof(currentSensorVirtualConfig_t
, scale
) },
893 { "ibatv_offset", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 16000 }, PG_CURRENT_SENSOR_VIRTUAL_CONFIG
, offsetof(currentSensorVirtualConfig_t
, offset
) },
897 // PG_BEEPER_DEV_CONFIG
898 { "beeper_inversion", VAR_UINT8
| HARDWARE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_BEEPER_DEV_CONFIG
, offsetof(beeperDevConfig_t
, isInverted
) },
899 { "beeper_od", VAR_UINT8
| HARDWARE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_BEEPER_DEV_CONFIG
, offsetof(beeperDevConfig_t
, isOpenDrain
) },
900 { "beeper_frequency", VAR_INT16
| HARDWARE_VALUE
, .config
.minmax
= { 0, 16000 }, PG_BEEPER_DEV_CONFIG
, offsetof(beeperDevConfig_t
, frequency
) },
904 { "beeper_dshot_beacon_tone", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= {1, DSHOT_CMD_BEACON5
}, PG_BEEPER_CONFIG
, offsetof(beeperConfig_t
, dshotBeaconTone
) },
909 { "yaw_motors_reversed", VAR_INT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_MIXER_CONFIG
, offsetof(mixerConfig_t
, yaw_motors_reversed
) },
910 { "mixer_type", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_MIXER_TYPE
}, PG_MIXER_CONFIG
, offsetof(mixerConfig_t
, mixer_type
) },
911 { "crashflip_motor_percent", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 100 }, PG_MIXER_CONFIG
, offsetof(mixerConfig_t
, crashflip_motor_percent
) },
912 { "crashflip_expo", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 100 }, PG_MIXER_CONFIG
, offsetof(mixerConfig_t
, crashflip_expo
) },
914 // PG_MOTOR_3D_CONFIG
915 { "3d_deadband_low", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { PWM_PULSE_MIN
, PWM_RANGE_MIDDLE
}, PG_MOTOR_3D_CONFIG
, offsetof(flight3DConfig_t
, deadband3d_low
) },
916 { "3d_deadband_high", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { PWM_RANGE_MIDDLE
, PWM_PULSE_MAX
}, PG_MOTOR_3D_CONFIG
, offsetof(flight3DConfig_t
, deadband3d_high
) },
917 { "3d_neutral", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { PWM_PULSE_MIN
, PWM_PULSE_MAX
}, PG_MOTOR_3D_CONFIG
, offsetof(flight3DConfig_t
, neutral3d
) },
918 { "3d_deadband_throttle", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 1, 100 }, PG_MOTOR_3D_CONFIG
, offsetof(flight3DConfig_t
, deadband3d_throttle
) },
919 { "3d_limit_low", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { PWM_PULSE_MIN
, PWM_RANGE_MIDDLE
}, PG_MOTOR_3D_CONFIG
, offsetof(flight3DConfig_t
, limit3d_low
) },
920 { "3d_limit_high", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { PWM_RANGE_MIDDLE
, PWM_PULSE_MAX
}, PG_MOTOR_3D_CONFIG
, offsetof(flight3DConfig_t
, limit3d_high
) },
921 { "3d_switched_mode", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_MOTOR_3D_CONFIG
, offsetof(flight3DConfig_t
, switched_mode3d
) },
925 { "servo_center_pulse", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { PWM_PULSE_MIN
, PWM_PULSE_MAX
}, PG_SERVO_CONFIG
, offsetof(servoConfig_t
, dev
.servoCenterPulse
) },
926 { "servo_pwm_rate", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 50, 498 }, PG_SERVO_CONFIG
, offsetof(servoConfig_t
, dev
.servoPwmRate
) },
927 { "servo_lowpass_hz", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 400}, PG_SERVO_CONFIG
, offsetof(servoConfig_t
, servo_lowpass_freq
) },
928 { "tri_unarmed_servo", VAR_INT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_SERVO_CONFIG
, offsetof(servoConfig_t
, tri_unarmed_servo
) },
929 { "channel_forwarding_start", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { AUX1
, MAX_SUPPORTED_RC_CHANNEL_COUNT
}, PG_SERVO_CONFIG
, offsetof(servoConfig_t
, channelForwardingStartChannel
) },
932 // PG_CONTROLRATE_PROFILES
933 #ifdef USE_PROFILE_NAMES
934 { "rateprofile_name", VAR_UINT8
| PROFILE_RATE_VALUE
| MODE_STRING
, .config
.string
= { 1, MAX_RATE_PROFILE_NAME_LENGTH
, STRING_FLAGS_NONE
}, PG_CONTROL_RATE_PROFILES
, offsetof(controlRateConfig_t
, profileName
) },
936 { "thr_mid", VAR_UINT8
| PROFILE_RATE_VALUE
, .config
.minmaxUnsigned
= { 0, 100 }, PG_CONTROL_RATE_PROFILES
, offsetof(controlRateConfig_t
, thrMid8
) },
937 { "thr_expo", VAR_UINT8
| PROFILE_RATE_VALUE
, .config
.minmaxUnsigned
= { 0, 100 }, PG_CONTROL_RATE_PROFILES
, offsetof(controlRateConfig_t
, thrExpo8
) },
938 { "rates_type", VAR_UINT8
| PROFILE_RATE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_RATES_TYPE
}, PG_CONTROL_RATE_PROFILES
, offsetof(controlRateConfig_t
, rates_type
) },
939 { "quickrates_rc_expo", VAR_UINT8
| PROFILE_RATE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_CONTROL_RATE_PROFILES
, offsetof(controlRateConfig_t
, quickRatesRcExpo
) },
940 { "roll_rc_rate", VAR_UINT8
| PROFILE_RATE_VALUE
, .config
.minmaxUnsigned
= { 1, CONTROL_RATE_CONFIG_RC_RATES_MAX
}, PG_CONTROL_RATE_PROFILES
, offsetof(controlRateConfig_t
, rcRates
[FD_ROLL
]) },
941 { "pitch_rc_rate", VAR_UINT8
| PROFILE_RATE_VALUE
, .config
.minmaxUnsigned
= { 1, CONTROL_RATE_CONFIG_RC_RATES_MAX
}, PG_CONTROL_RATE_PROFILES
, offsetof(controlRateConfig_t
, rcRates
[FD_PITCH
]) },
942 { "yaw_rc_rate", VAR_UINT8
| PROFILE_RATE_VALUE
, .config
.minmaxUnsigned
= { 1, CONTROL_RATE_CONFIG_RC_RATES_MAX
}, PG_CONTROL_RATE_PROFILES
, offsetof(controlRateConfig_t
, rcRates
[FD_YAW
]) },
943 { "roll_expo", VAR_UINT8
| PROFILE_RATE_VALUE
, .config
.minmaxUnsigned
= { 0, CONTROL_RATE_CONFIG_RC_EXPO_MAX
}, PG_CONTROL_RATE_PROFILES
, offsetof(controlRateConfig_t
, rcExpo
[FD_ROLL
]) },
944 { "pitch_expo", VAR_UINT8
| PROFILE_RATE_VALUE
, .config
.minmaxUnsigned
= { 0, CONTROL_RATE_CONFIG_RC_EXPO_MAX
}, PG_CONTROL_RATE_PROFILES
, offsetof(controlRateConfig_t
, rcExpo
[FD_PITCH
]) },
945 { "yaw_expo", VAR_UINT8
| PROFILE_RATE_VALUE
, .config
.minmaxUnsigned
= { 0, CONTROL_RATE_CONFIG_RC_EXPO_MAX
}, PG_CONTROL_RATE_PROFILES
, offsetof(controlRateConfig_t
, rcExpo
[FD_YAW
]) },
946 { "roll_srate", VAR_UINT8
| PROFILE_RATE_VALUE
, .config
.minmaxUnsigned
= { 0, CONTROL_RATE_CONFIG_RATE_MAX
}, PG_CONTROL_RATE_PROFILES
, offsetof(controlRateConfig_t
, rates
[FD_ROLL
]) },
947 { "pitch_srate", VAR_UINT8
| PROFILE_RATE_VALUE
, .config
.minmaxUnsigned
= { 0, CONTROL_RATE_CONFIG_RATE_MAX
}, PG_CONTROL_RATE_PROFILES
, offsetof(controlRateConfig_t
, rates
[FD_PITCH
]) },
948 { "yaw_srate", VAR_UINT8
| PROFILE_RATE_VALUE
, .config
.minmaxUnsigned
= { 0, CONTROL_RATE_CONFIG_RATE_MAX
}, PG_CONTROL_RATE_PROFILES
, offsetof(controlRateConfig_t
, rates
[FD_YAW
]) },
949 { "tpa_rate", VAR_UINT8
| PROFILE_RATE_VALUE
, .config
.minmaxUnsigned
= { 0, CONTROL_RATE_CONFIG_TPA_MAX
}, PG_CONTROL_RATE_PROFILES
, offsetof(controlRateConfig_t
, dynThrPID
) },
950 { "tpa_breakpoint", VAR_UINT16
| PROFILE_RATE_VALUE
, .config
.minmaxUnsigned
= { PWM_PULSE_MIN
, PWM_PULSE_MAX
}, PG_CONTROL_RATE_PROFILES
, offsetof(controlRateConfig_t
, tpa_breakpoint
) },
952 { "tpa_mode", VAR_UINT8
| PROFILE_RATE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_TPA_MODE
}, PG_CONTROL_RATE_PROFILES
, offsetof(controlRateConfig_t
, tpaMode
) },
954 { "throttle_limit_type", VAR_UINT8
| PROFILE_RATE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_THROTTLE_LIMIT_TYPE
}, PG_CONTROL_RATE_PROFILES
, offsetof(controlRateConfig_t
, throttle_limit_type
) },
955 { "throttle_limit_percent", VAR_UINT8
| PROFILE_RATE_VALUE
, .config
.minmaxUnsigned
= { 25, 100 }, PG_CONTROL_RATE_PROFILES
, offsetof(controlRateConfig_t
, throttle_limit_percent
) },
956 { "roll_rate_limit", VAR_UINT16
| PROFILE_RATE_VALUE
, .config
.minmaxUnsigned
= { CONTROL_RATE_CONFIG_RATE_LIMIT_MIN
, CONTROL_RATE_CONFIG_RATE_LIMIT_MAX
}, PG_CONTROL_RATE_PROFILES
, offsetof(controlRateConfig_t
, rate_limit
[FD_ROLL
]) },
957 { "pitch_rate_limit", VAR_UINT16
| PROFILE_RATE_VALUE
, .config
.minmaxUnsigned
= { CONTROL_RATE_CONFIG_RATE_LIMIT_MIN
, CONTROL_RATE_CONFIG_RATE_LIMIT_MAX
}, PG_CONTROL_RATE_PROFILES
, offsetof(controlRateConfig_t
, rate_limit
[FD_PITCH
]) },
958 { "yaw_rate_limit", VAR_UINT16
| PROFILE_RATE_VALUE
, .config
.minmaxUnsigned
= { CONTROL_RATE_CONFIG_RATE_LIMIT_MIN
, CONTROL_RATE_CONFIG_RATE_LIMIT_MAX
}, PG_CONTROL_RATE_PROFILES
, offsetof(controlRateConfig_t
, rate_limit
[FD_YAW
]) },
959 { "roll_level_expo", VAR_UINT8
| PROFILE_RATE_VALUE
, .config
.minmaxUnsigned
= { 0, CONTROL_RATE_CONFIG_RC_EXPO_MAX
}, PG_CONTROL_RATE_PROFILES
, offsetof(controlRateConfig_t
, levelExpo
[FD_ROLL
]) },
960 { "pitch_level_expo", VAR_UINT8
| PROFILE_RATE_VALUE
, .config
.minmaxUnsigned
= { 0, CONTROL_RATE_CONFIG_RC_EXPO_MAX
}, PG_CONTROL_RATE_PROFILES
, offsetof(controlRateConfig_t
, levelExpo
[FD_PITCH
]) },
963 { "reboot_character", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 48, 126 }, PG_SERIAL_CONFIG
, offsetof(serialConfig_t
, reboot_character
) },
964 { "serial_update_rate_hz", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 100, 2000 }, PG_SERIAL_CONFIG
, offsetof(serialConfig_t
, serial_update_rate_hz
) },
967 { "imu_dcm_kp", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 32000 }, PG_IMU_CONFIG
, offsetof(imuConfig_t
, dcm_kp
) },
968 { "imu_dcm_ki", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 32000 }, PG_IMU_CONFIG
, offsetof(imuConfig_t
, dcm_ki
) },
969 { "small_angle", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 180 }, PG_IMU_CONFIG
, offsetof(imuConfig_t
, small_angle
) },
972 { "auto_disarm_delay", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 60 }, PG_ARMING_CONFIG
, offsetof(armingConfig_t
, auto_disarm_delay
) },
973 { "gyro_cal_on_first_arm", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_ARMING_CONFIG
, offsetof(armingConfig_t
, gyro_cal_on_first_arm
) },
978 { "gps_provider", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_GPS_PROVIDER
}, PG_GPS_CONFIG
, offsetof(gpsConfig_t
, provider
) },
979 { "gps_sbas_mode", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_GPS_SBAS_MODE
}, PG_GPS_CONFIG
, offsetof(gpsConfig_t
, sbasMode
) },
980 { "gps_sbas_integrity", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_GPS_CONFIG
, offsetof(gpsConfig_t
, sbas_integrity
) },
981 { "gps_auto_config", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_GPS_CONFIG
, offsetof(gpsConfig_t
, autoConfig
) },
982 { "gps_auto_baud", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_GPS_CONFIG
, offsetof(gpsConfig_t
, autoBaud
) },
983 { "gps_ublox_use_galileo", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_GPS_CONFIG
, offsetof(gpsConfig_t
, gps_ublox_use_galileo
) },
984 { "gps_ublox_mode", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_GPS_UBLOX_MODE
}, PG_GPS_CONFIG
, offsetof(gpsConfig_t
, gps_ublox_mode
) },
985 { "gps_set_home_point_once", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_GPS_CONFIG
, offsetof(gpsConfig_t
, gps_set_home_point_once
) },
986 { "gps_use_3d_speed", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_GPS_CONFIG
, offsetof(gpsConfig_t
, gps_use_3d_speed
) },
988 #ifdef USE_GPS_RESCUE
990 { "gps_rescue_angle", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 200 }, PG_GPS_RESCUE
, offsetof(gpsRescueConfig_t
, angle
) },
991 { "gps_rescue_alt_buffer", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 100 }, PG_GPS_RESCUE
, offsetof(gpsRescueConfig_t
, rescueAltitudeBufferM
) },
992 { "gps_rescue_initial_alt", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 20, 100 }, PG_GPS_RESCUE
, offsetof(gpsRescueConfig_t
, initialAltitudeM
) },
993 { "gps_rescue_descent_dist", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 30, 500 }, PG_GPS_RESCUE
, offsetof(gpsRescueConfig_t
, descentDistanceM
) },
994 { "gps_rescue_landing_alt", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 3, 10 }, PG_GPS_RESCUE
, offsetof(gpsRescueConfig_t
, targetLandingAltitudeM
) },
995 { "gps_rescue_landing_dist", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 5, 15 }, PG_GPS_RESCUE
, offsetof(gpsRescueConfig_t
, targetLandingDistanceM
) },
996 { "gps_rescue_ground_speed", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 30, 3000 }, PG_GPS_RESCUE
, offsetof(gpsRescueConfig_t
, rescueGroundspeed
) },
997 { "gps_rescue_throttle_p", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 500 }, PG_GPS_RESCUE
, offsetof(gpsRescueConfig_t
, throttleP
) },
998 { "gps_rescue_throttle_i", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 500 }, PG_GPS_RESCUE
, offsetof(gpsRescueConfig_t
, throttleI
) },
999 { "gps_rescue_throttle_d", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 500 }, PG_GPS_RESCUE
, offsetof(gpsRescueConfig_t
, throttleD
) },
1000 { "gps_rescue_velocity_p", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 500 }, PG_GPS_RESCUE
, offsetof(gpsRescueConfig_t
, velP
) },
1001 { "gps_rescue_velocity_i", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 500 }, PG_GPS_RESCUE
, offsetof(gpsRescueConfig_t
, velI
) },
1002 { "gps_rescue_velocity_d", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 500 }, PG_GPS_RESCUE
, offsetof(gpsRescueConfig_t
, velD
) },
1003 { "gps_rescue_yaw_p", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 500 }, PG_GPS_RESCUE
, offsetof(gpsRescueConfig_t
, yawP
) },
1005 { "gps_rescue_throttle_min", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 1000, 2000 }, PG_GPS_RESCUE
, offsetof(gpsRescueConfig_t
, throttleMin
) },
1006 { "gps_rescue_throttle_max", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 1000, 2000 }, PG_GPS_RESCUE
, offsetof(gpsRescueConfig_t
, throttleMax
) },
1007 { "gps_rescue_ascend_rate", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 100, 2500 }, PG_GPS_RESCUE
, offsetof(gpsRescueConfig_t
, ascendRate
) },
1008 { "gps_rescue_descend_rate", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 100, 500 }, PG_GPS_RESCUE
, offsetof(gpsRescueConfig_t
, descendRate
) },
1009 { "gps_rescue_throttle_hover", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 1000, 2000 }, PG_GPS_RESCUE
, offsetof(gpsRescueConfig_t
, throttleHover
) },
1010 { "gps_rescue_sanity_checks", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_GPS_RESCUE_SANITY_CHECK
}, PG_GPS_RESCUE
, offsetof(gpsRescueConfig_t
, sanityChecks
) },
1011 { "gps_rescue_min_sats", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 5, 50 }, PG_GPS_RESCUE
, offsetof(gpsRescueConfig_t
, minSats
) },
1012 { "gps_rescue_min_dth", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 50, 1000 }, PG_GPS_RESCUE
, offsetof(gpsRescueConfig_t
, minRescueDth
) },
1013 { "gps_rescue_allow_arming_without_fix", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_GPS_RESCUE
, offsetof(gpsRescueConfig_t
, allowArmingWithoutFix
) },
1014 { "gps_rescue_alt_mode", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_GPS_RESCUE_ALT_MODE
}, PG_GPS_RESCUE
, offsetof(gpsRescueConfig_t
, altitudeMode
) },
1016 { "gps_rescue_use_mag", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_GPS_RESCUE
, offsetof(gpsRescueConfig_t
, useMag
) },
1021 { "deadband", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 32 }, PG_RC_CONTROLS_CONFIG
, offsetof(rcControlsConfig_t
, deadband
) },
1022 { "yaw_deadband", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 100 }, PG_RC_CONTROLS_CONFIG
, offsetof(rcControlsConfig_t
, yaw_deadband
) },
1023 { "yaw_control_reversed", VAR_INT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_RC_CONTROLS_CONFIG
, offsetof(rcControlsConfig_t
, yaw_control_reversed
) },
1026 { "pid_process_denom", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 1, MAX_PID_PROCESS_DENOM
}, PG_PID_CONFIG
, offsetof(pidConfig_t
, pid_process_denom
) },
1027 #ifdef USE_RUNAWAY_TAKEOFF
1028 { "runaway_takeoff_prevention", VAR_UINT8
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_PID_CONFIG
, offsetof(pidConfig_t
, runaway_takeoff_prevention
) }, // enables/disables runaway takeoff prevention
1029 { "runaway_takeoff_deactivate_delay", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 100, 1000 }, PG_PID_CONFIG
, offsetof(pidConfig_t
, runaway_takeoff_deactivate_delay
) }, // deactivate time in ms
1030 { "runaway_takeoff_deactivate_throttle_percent", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 100 }, PG_PID_CONFIG
, offsetof(pidConfig_t
, runaway_takeoff_deactivate_throttle
) }, // minimum throttle percentage during deactivation phase
1034 #ifdef USE_PROFILE_NAMES
1035 { "profile_name", VAR_UINT8
| PROFILE_VALUE
| MODE_STRING
, .config
.string
= { 1, MAX_PROFILE_NAME_LENGTH
, STRING_FLAGS_NONE
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, profileName
) },
1038 { "dterm_lpf1_dyn_min_hz", VAR_UINT16
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, DYN_LPF_MAX_HZ
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, dterm_lpf1_dyn_min_hz
) },
1039 { "dterm_lpf1_dyn_max_hz", VAR_UINT16
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, DYN_LPF_MAX_HZ
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, dterm_lpf1_dyn_max_hz
) },
1040 { "dterm_lpf1_dyn_expo", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, 10 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, dterm_lpf1_dyn_expo
) },
1042 { "dterm_lpf1_type", VAR_UINT8
| PROFILE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_DTERM_LPF_TYPE
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, dterm_lpf1_type
) },
1043 { "dterm_lpf1_static_hz", VAR_INT16
| PROFILE_VALUE
, .config
.minmax
= { 0, LPF_MAX_HZ
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, dterm_lpf1_static_hz
) },
1044 { "dterm_lpf2_type", VAR_UINT8
| PROFILE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_DTERM_LPF_TYPE
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, dterm_lpf2_type
) },
1045 { "dterm_lpf2_static_hz", VAR_INT16
| PROFILE_VALUE
, .config
.minmax
= { 0, LPF_MAX_HZ
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, dterm_lpf2_static_hz
) },
1046 { "dterm_notch_hz", VAR_UINT16
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, LPF_MAX_HZ
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, dterm_notch_hz
) },
1047 { "dterm_notch_cutoff", VAR_UINT16
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, LPF_MAX_HZ
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, dterm_notch_cutoff
) },
1048 #if defined(USE_BATTERY_VOLTAGE_SAG_COMPENSATION)
1049 { "vbat_sag_compensation", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, 150 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, vbat_sag_compensation
) },
1051 { "pid_at_min_throttle", VAR_UINT8
| PROFILE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, pidAtMinThrottle
) },
1052 { "anti_gravity_mode", VAR_UINT8
| PROFILE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_ANTI_GRAVITY_MODE
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, antiGravityMode
) },
1053 { "anti_gravity_threshold", VAR_UINT16
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 20, 1000 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, itermThrottleThreshold
) },
1054 { "anti_gravity_gain", VAR_UINT16
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { ITERM_ACCELERATOR_GAIN_OFF
, ITERM_ACCELERATOR_GAIN_MAX
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, itermAcceleratorGain
) },
1055 { "acc_limit_yaw", VAR_UINT16
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, 500 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, yawRateAccelLimit
) },
1056 { "acc_limit", VAR_UINT16
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, 500 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, rateAccelLimit
) },
1057 { "crash_dthreshold", VAR_UINT16
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 10, 2000 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, crash_dthreshold
) },
1058 { "crash_gthreshold", VAR_UINT16
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 100, 2000 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, crash_gthreshold
) },
1059 { "crash_setpoint_threshold", VAR_UINT16
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 50, 2000 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, crash_setpoint_threshold
) },
1060 { "crash_time", VAR_UINT16
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 100, 5000 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, crash_time
) },
1061 { "crash_delay", VAR_UINT16
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, 500 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, crash_delay
) },
1062 { "crash_recovery_angle", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 5, 30 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, crash_recovery_angle
) },
1063 { "crash_recovery_rate", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 50, 255 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, crash_recovery_rate
) },
1064 { "crash_limit_yaw", VAR_UINT16
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, 1000 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, crash_limit_yaw
) },
1065 { "crash_recovery", VAR_UINT8
| PROFILE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_CRASH_RECOVERY
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, crash_recovery
) },
1067 { "iterm_rotation", VAR_UINT8
| PROFILE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, iterm_rotation
) },
1068 #if defined(USE_ITERM_RELAX)
1069 { "iterm_relax", VAR_UINT8
| PROFILE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_ITERM_RELAX
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, iterm_relax
) },
1070 { "iterm_relax_type", VAR_UINT8
| PROFILE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_ITERM_RELAX_TYPE
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, iterm_relax_type
) },
1071 { "iterm_relax_cutoff", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 1, 50 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, iterm_relax_cutoff
) },
1073 { "iterm_windup", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 30, 100 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, itermWindupPointPercent
) },
1074 { "iterm_limit", VAR_UINT16
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, 500 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, itermLimit
) },
1075 { "pidsum_limit", VAR_UINT16
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { PIDSUM_LIMIT_MIN
, PIDSUM_LIMIT_MAX
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, pidSumLimit
) },
1076 { "pidsum_limit_yaw", VAR_UINT16
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { PIDSUM_LIMIT_MIN
, PIDSUM_LIMIT_MAX
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, pidSumLimitYaw
) },
1077 { "yaw_lowpass_hz", VAR_UINT16
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, 500 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, yaw_lowpass_hz
) },
1079 #if defined(USE_THROTTLE_BOOST)
1080 { "throttle_boost", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, 100 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, throttle_boost
) },
1081 { "throttle_boost_cutoff", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 5, 50 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, throttle_boost_cutoff
) },
1084 #ifdef USE_ACRO_TRAINER
1085 { "acro_trainer_angle_limit", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 10, 80 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, acro_trainer_angle_limit
) },
1086 { "acro_trainer_lookahead_ms", VAR_UINT16
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 10, 200 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, acro_trainer_lookahead_ms
) },
1087 { "acro_trainer_debug_axis", VAR_UINT8
| PROFILE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_ACRO_TRAINER_DEBUG
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, acro_trainer_debug_axis
) },
1088 { "acro_trainer_gain", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 25, 255 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, acro_trainer_gain
) },
1089 #endif // USE_ACRO_TRAINER
1091 { "p_pitch", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, PID_GAIN_MAX
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, pid
[PID_PITCH
].P
) },
1092 { "i_pitch", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, PID_GAIN_MAX
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, pid
[PID_PITCH
].I
) },
1093 { "d_pitch", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, PID_GAIN_MAX
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, pid
[PID_PITCH
].D
) },
1094 { "f_pitch", VAR_UINT16
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, F_GAIN_MAX
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, pid
[PID_PITCH
].F
) },
1095 { "p_roll", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, PID_GAIN_MAX
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, pid
[PID_ROLL
].P
) },
1096 { "i_roll", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, PID_GAIN_MAX
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, pid
[PID_ROLL
].I
) },
1097 { "d_roll", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, PID_GAIN_MAX
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, pid
[PID_ROLL
].D
) },
1098 { "f_roll", VAR_UINT16
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, F_GAIN_MAX
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, pid
[PID_ROLL
].F
) },
1099 { "p_yaw", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, PID_GAIN_MAX
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, pid
[PID_YAW
].P
) },
1100 { "i_yaw", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, PID_GAIN_MAX
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, pid
[PID_YAW
].I
) },
1101 { "d_yaw", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, PID_GAIN_MAX
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, pid
[PID_YAW
].D
) },
1102 { "f_yaw", VAR_UINT16
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, F_GAIN_MAX
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, pid
[PID_YAW
].F
) },
1104 { "angle_level_strength", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, 200 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, pid
[PID_LEVEL
].P
) },
1105 { "horizon_level_strength", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, 200 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, pid
[PID_LEVEL
].I
) },
1106 { "horizon_transition", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, 200 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, pid
[PID_LEVEL
].D
) },
1108 { "level_limit", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 10, 90 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, levelAngleLimit
) },
1110 { "horizon_tilt_effect", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, 250 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, horizon_tilt_effect
) },
1111 { "horizon_tilt_expert_mode", VAR_UINT8
| PROFILE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, horizon_tilt_expert_mode
) },
1113 #if defined(USE_ABSOLUTE_CONTROL)
1114 { "abs_control_gain", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, 20 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, abs_control_gain
) },
1115 { "abs_control_limit", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 10, 255 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, abs_control_limit
) },
1116 { "abs_control_error_limit", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 1, 45 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, abs_control_error_limit
) },
1117 { "abs_control_cutoff", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 1, 45 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, abs_control_cutoff
) },
1120 #ifdef USE_INTEGRATED_YAW_CONTROL
1121 { "use_integrated_yaw", VAR_UINT8
| PROFILE_VALUE
| MODE_LOOKUP
, .config
.lookup
= {TABLE_OFF_ON
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, use_integrated_yaw
) },
1122 { "integrated_yaw_relax", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, 255 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, integrated_yaw_relax
) },
1126 { "d_min_roll", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, D_MIN_GAIN_MAX
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, d_min
[FD_ROLL
]) },
1127 { "d_min_pitch", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, D_MIN_GAIN_MAX
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, d_min
[FD_PITCH
]) },
1128 { "d_min_yaw", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, D_MIN_GAIN_MAX
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, d_min
[FD_YAW
]) },
1129 { "d_min_boost_gain", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, 100 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, d_min_gain
) },
1130 { "d_min_advance", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, 200 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, d_min_advance
) },
1133 { "motor_output_limit", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { MOTOR_OUTPUT_LIMIT_PERCENT_MIN
, MOTOR_OUTPUT_LIMIT_PERCENT_MAX
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, motor_output_limit
) },
1134 { "auto_profile_cell_count", VAR_INT8
| PROFILE_VALUE
, .config
.minmax
= { AUTO_PROFILE_CELL_COUNT_CHANGE
, MAX_AUTO_DETECT_CELL_COUNT
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, auto_profile_cell_count
) },
1136 #ifdef USE_LAUNCH_CONTROL
1137 { "launch_control_mode", VAR_UINT8
| PROFILE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_LAUNCH_CONTROL_MODE
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, launchControlMode
) },
1138 { "launch_trigger_allow_reset", VAR_UINT8
| PROFILE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, launchControlAllowTriggerReset
) },
1139 { "launch_trigger_throttle_percent", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, LAUNCH_CONTROL_THROTTLE_TRIGGER_MAX
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, launchControlThrottlePercent
) },
1140 { "launch_angle_limit", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, 80 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, launchControlAngleLimit
) },
1141 { "launch_control_gain", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, 200 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, launchControlGain
) },
1144 #ifdef USE_THRUST_LINEARIZATION
1145 { "thrust_linear", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 150 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, thrustLinearization
) },
1148 #ifdef USE_AIRMODE_LPF
1149 { "transient_throttle_limit", VAR_UINT8
| MASTER_VALUE
, .config
.minmax
= { 0, 30 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, transient_throttle_limit
) },
1152 #ifdef USE_FEEDFORWARD
1153 { "feedforward_transition", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, 100 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, feedforward_transition
) },
1154 { "feedforward_averaging", VAR_UINT8
| PROFILE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_FEEDFORWARD_AVERAGING
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, feedforward_averaging
) },
1155 { "feedforward_smoothing", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= {0, 75}, PG_PID_PROFILE
, offsetof(pidProfile_t
, feedforward_smooth_factor
) },
1156 { "feedforward_jitter_reduction", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= {0, 20}, PG_PID_PROFILE
, offsetof(pidProfile_t
, feedforward_jitter_factor
) },
1157 { "feedforward_boost", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, 50 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, feedforward_boost
) },
1158 { "feedforward_max_rate_limit", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= {0, 150}, PG_PID_PROFILE
, offsetof(pidProfile_t
, feedforward_max_rate_limit
) },
1162 { "dyn_idle_min_rpm", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, 100 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, dyn_idle_min_rpm
) },
1163 { "dyn_idle_p_gain", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 1, 250 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, dyn_idle_p_gain
) },
1164 { "dyn_idle_i_gain", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 1, 250 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, dyn_idle_i_gain
) },
1165 { "dyn_idle_d_gain", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, 250 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, dyn_idle_d_gain
) },
1166 { "dyn_idle_max_increase", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 10, 255 }, PG_PID_PROFILE
, offsetof(pidProfile_t
, dyn_idle_max_increase
) },
1168 { "level_race_mode", VAR_UINT8
| PROFILE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, level_race_mode
) },
1170 #ifdef USE_SIMPLIFIED_TUNING
1171 { "simplified_pids_mode", VAR_UINT8
| PROFILE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_SIMPLIFIED_TUNING_PIDS_MODE
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, simplified_pids_mode
) },
1172 { "simplified_master_multiplier", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { SIMPLIFIED_TUNING_MIN
, SIMPLIFIED_TUNING_MAX
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, simplified_master_multiplier
) },
1173 { "simplified_i_gain", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { SIMPLIFIED_TUNING_MIN
, SIMPLIFIED_TUNING_MAX
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, simplified_i_gain
) },
1174 { "simplified_d_gain", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { SIMPLIFIED_TUNING_MIN
, SIMPLIFIED_TUNING_MAX
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, simplified_d_gain
) },
1175 { "simplified_pi_gain", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { SIMPLIFIED_TUNING_MIN
, SIMPLIFIED_TUNING_MAX
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, simplified_pi_gain
) },
1176 { "simplified_dmax_gain", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, SIMPLIFIED_TUNING_MAX
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, simplified_dmin_ratio
) },
1177 { "simplified_feedforward_gain", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { 0, SIMPLIFIED_TUNING_MAX
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, simplified_feedforward_gain
) },
1178 { "simplified_pitch_d_gain", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { SIMPLIFIED_TUNING_MIN
, SIMPLIFIED_TUNING_MAX
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, simplified_roll_pitch_ratio
) },
1179 { "simplified_pitch_pi_gain", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { SIMPLIFIED_TUNING_MIN
, SIMPLIFIED_TUNING_MAX
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, simplified_pitch_pi_gain
) },
1181 { "simplified_dterm_filter", VAR_UINT8
| PROFILE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, simplified_dterm_filter
) },
1182 { "simplified_dterm_filter_multiplier", VAR_UINT8
| PROFILE_VALUE
, .config
.minmaxUnsigned
= { SIMPLIFIED_TUNING_DTERM_MIN
, SIMPLIFIED_TUNING_DTERM_MAX
}, PG_PID_PROFILE
, offsetof(pidProfile_t
, simplified_dterm_filter_multiplier
) },
1184 { "simplified_gyro_filter", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_GYRO_CONFIG
, offsetof(gyroConfig_t
, simplified_gyro_filter
) },
1185 { "simplified_gyro_filter_multiplier", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { SIMPLIFIED_TUNING_MIN
, SIMPLIFIED_TUNING_MAX
}, PG_GYRO_CONFIG
, offsetof(gyroConfig_t
, simplified_gyro_filter_multiplier
) },
1188 // PG_TELEMETRY_CONFIG
1189 #ifdef USE_TELEMETRY
1190 { "tlm_inverted", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_TELEMETRY_CONFIG
, offsetof(telemetryConfig_t
, telemetry_inverted
) },
1191 { "tlm_halfduplex", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_TELEMETRY_CONFIG
, offsetof(telemetryConfig_t
, halfDuplex
) },
1192 #if defined(USE_TELEMETRY_FRSKY_HUB)
1193 #if defined(USE_GPS)
1194 { "frsky_default_lat", VAR_INT16
| MASTER_VALUE
, .config
.minmax
= { -9000, 9000 }, PG_TELEMETRY_CONFIG
, offsetof(telemetryConfig_t
, gpsNoFixLatitude
) },
1195 { "frsky_default_long", VAR_INT16
| MASTER_VALUE
, .config
.minmax
= { -18000, 18000 }, PG_TELEMETRY_CONFIG
, offsetof(telemetryConfig_t
, gpsNoFixLongitude
) },
1196 { "frsky_gps_format", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, FRSKY_FORMAT_NMEA
}, PG_TELEMETRY_CONFIG
, offsetof(telemetryConfig_t
, frsky_coordinate_format
) },
1197 { "frsky_unit", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_UNIT
}, PG_TELEMETRY_CONFIG
, offsetof(telemetryConfig_t
, frsky_unit
) },
1199 { "frsky_vfas_precision", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { FRSKY_VFAS_PRECISION_LOW
, FRSKY_VFAS_PRECISION_HIGH
}, PG_TELEMETRY_CONFIG
, offsetof(telemetryConfig_t
, frsky_vfas_precision
) },
1200 #endif // USE_TELEMETRY_FRSKY_HUB
1201 { "hott_alarm_int", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 120 }, PG_TELEMETRY_CONFIG
, offsetof(telemetryConfig_t
, hottAlarmSoundInterval
) },
1202 { "pid_in_tlm", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_TELEMETRY_CONFIG
, offsetof(telemetryConfig_t
, pidValuesAsTelemetry
) },
1203 { "report_cell_voltage", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_TELEMETRY_CONFIG
, offsetof(telemetryConfig_t
, report_cell_voltage
) },
1204 #if defined(USE_TELEMETRY_IBUS)
1205 { "ibus_sensor", VAR_UINT8
| MASTER_VALUE
| MODE_ARRAY
, .config
.array
.length
= IBUS_SENSOR_COUNT
, PG_TELEMETRY_CONFIG
, offsetof(telemetryConfig_t
, flysky_sensors
)},
1207 #ifdef USE_TELEMETRY_MAVLINK
1208 // Support for misusing the heading field in MAVlink to indicate mAh drawn for Connex Prosight OSD
1209 // Set to 10 to show a tenth of your capacity drawn.
1210 // Set to $size_of_battery to get a percentage of battery used.
1211 { "mavlink_mah_as_heading_divisor", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 30000 }, PG_TELEMETRY_CONFIG
, offsetof(telemetryConfig_t
, mavlink_mah_as_heading_divisor
) },
1213 #ifdef USE_TELEMETRY_SENSORS_DISABLED_DETAILS
1214 { "telemetry_disabled_voltage", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= LOG2(SENSOR_VOLTAGE
), PG_TELEMETRY_CONFIG
, offsetof(telemetryConfig_t
, disabledSensors
)},
1215 { "telemetry_disabled_current", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= LOG2(SENSOR_CURRENT
), PG_TELEMETRY_CONFIG
, offsetof(telemetryConfig_t
, disabledSensors
)},
1216 { "telemetry_disabled_fuel", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= LOG2(SENSOR_FUEL
), PG_TELEMETRY_CONFIG
, offsetof(telemetryConfig_t
, disabledSensors
)},
1217 { "telemetry_disabled_mode", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= LOG2(SENSOR_MODE
), PG_TELEMETRY_CONFIG
, offsetof(telemetryConfig_t
, disabledSensors
)},
1218 { "telemetry_disabled_acc_x", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= LOG2(SENSOR_ACC_X
), PG_TELEMETRY_CONFIG
, offsetof(telemetryConfig_t
, disabledSensors
)},
1219 { "telemetry_disabled_acc_y", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= LOG2(SENSOR_ACC_Y
), PG_TELEMETRY_CONFIG
, offsetof(telemetryConfig_t
, disabledSensors
)},
1220 { "telemetry_disabled_acc_z", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= LOG2(SENSOR_ACC_Z
), PG_TELEMETRY_CONFIG
, offsetof(telemetryConfig_t
, disabledSensors
)},
1221 { "telemetry_disabled_pitch", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= LOG2(SENSOR_PITCH
), PG_TELEMETRY_CONFIG
, offsetof(telemetryConfig_t
, disabledSensors
)},
1222 { "telemetry_disabled_roll", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= LOG2(SENSOR_ROLL
), PG_TELEMETRY_CONFIG
, offsetof(telemetryConfig_t
, disabledSensors
)},
1223 { "telemetry_disabled_heading", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= LOG2(SENSOR_HEADING
), PG_TELEMETRY_CONFIG
, offsetof(telemetryConfig_t
, disabledSensors
)},
1224 { "telemetry_disabled_altitude", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= LOG2(SENSOR_ALTITUDE
), PG_TELEMETRY_CONFIG
, offsetof(telemetryConfig_t
, disabledSensors
)},
1225 { "telemetry_disabled_vario", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= LOG2(SENSOR_VARIO
), PG_TELEMETRY_CONFIG
, offsetof(telemetryConfig_t
, disabledSensors
)},
1226 { "telemetry_disabled_lat_long", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= LOG2(SENSOR_LAT_LONG
), PG_TELEMETRY_CONFIG
, offsetof(telemetryConfig_t
, disabledSensors
)},
1227 { "telemetry_disabled_ground_speed", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= LOG2(SENSOR_GROUND_SPEED
), PG_TELEMETRY_CONFIG
, offsetof(telemetryConfig_t
, disabledSensors
)},
1228 { "telemetry_disabled_distance", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= LOG2(SENSOR_DISTANCE
), PG_TELEMETRY_CONFIG
, offsetof(telemetryConfig_t
, disabledSensors
)},
1229 { "telemetry_disabled_esc_current", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= LOG2(ESC_SENSOR_CURRENT
), PG_TELEMETRY_CONFIG
, offsetof(telemetryConfig_t
, disabledSensors
)},
1230 { "telemetry_disabled_esc_voltage", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= LOG2(ESC_SENSOR_VOLTAGE
), PG_TELEMETRY_CONFIG
, offsetof(telemetryConfig_t
, disabledSensors
)},
1231 { "telemetry_disabled_esc_rpm", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= LOG2(ESC_SENSOR_RPM
), PG_TELEMETRY_CONFIG
, offsetof(telemetryConfig_t
, disabledSensors
)},
1232 { "telemetry_disabled_esc_temperature", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= LOG2(ESC_SENSOR_TEMPERATURE
), PG_TELEMETRY_CONFIG
, offsetof(telemetryConfig_t
, disabledSensors
)},
1233 { "telemetry_disabled_temperature", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= LOG2(SENSOR_TEMPERATURE
), PG_TELEMETRY_CONFIG
, offsetof(telemetryConfig_t
, disabledSensors
)},
1234 { "telemetry_disabled_cap_used", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= LOG2(SENSOR_CAP_USED
), PG_TELEMETRY_CONFIG
, offsetof(telemetryConfig_t
, disabledSensors
)},
1236 { "telemetry_disabled_sensors", VAR_UINT32
| MASTER_VALUE
, .config
.u32Max
= SENSOR_ALL
, PG_TELEMETRY_CONFIG
, offsetof(telemetryConfig_t
, disabledSensors
)},
1238 #endif // USE_TELEMETRY
1240 // PG_LED_STRIP_CONFIG
1241 #ifdef USE_LED_STRIP
1242 { "ledstrip_visual_beeper", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_LED_STRIP_CONFIG
, offsetof(ledStripConfig_t
, ledstrip_visual_beeper
) },
1243 { "ledstrip_visual_beeper_color",VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_LEDSTRIP_COLOR
}, PG_LED_STRIP_CONFIG
, offsetof(ledStripConfig_t
, ledstrip_visual_beeper_color
) },
1244 { "ledstrip_grb_rgb", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_RGB_GRB
}, PG_LED_STRIP_CONFIG
, offsetof(ledStripConfig_t
, ledstrip_grb_rgb
) },
1245 { "ledstrip_profile", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_LED_PROFILE
}, PG_LED_STRIP_CONFIG
, offsetof(ledStripConfig_t
, ledstrip_profile
) },
1246 { "ledstrip_race_color", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_LEDSTRIP_COLOR
}, PG_LED_STRIP_CONFIG
, offsetof(ledStripConfig_t
, ledstrip_race_color
) },
1247 { "ledstrip_beacon_color", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_LEDSTRIP_COLOR
}, PG_LED_STRIP_CONFIG
, offsetof(ledStripConfig_t
, ledstrip_beacon_color
) },
1248 { "ledstrip_beacon_period_ms", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 50, 10000 }, PG_LED_STRIP_CONFIG
, offsetof(ledStripConfig_t
, ledstrip_beacon_period_ms
) },
1249 { "ledstrip_beacon_percent", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 100 }, PG_LED_STRIP_CONFIG
, offsetof(ledStripConfig_t
, ledstrip_beacon_percent
) },
1250 { "ledstrip_beacon_armed_only", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_LED_STRIP_CONFIG
, offsetof(ledStripConfig_t
, ledstrip_beacon_armed_only
) },
1251 { "ledstrip_brightness", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 5, 100 }, PG_LED_STRIP_CONFIG
, offsetof(ledStripConfig_t
, ledstrip_brightness
) },
1256 { "sdcard_detect_inverted", VAR_UINT8
| HARDWARE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_SDCARD_CONFIG
, offsetof(sdcardConfig_t
, cardDetectInverted
) },
1257 { "sdcard_mode", VAR_UINT8
| HARDWARE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_SDCARD_MODE
}, PG_SDCARD_CONFIG
, offsetof(sdcardConfig_t
, mode
) },
1259 #ifdef USE_SDCARD_SPI
1260 { "sdcard_spi_bus", VAR_UINT8
| HARDWARE_VALUE
, .config
.minmaxUnsigned
= { 0, SPIDEV_COUNT
}, PG_SDCARD_CONFIG
, offsetof(sdcardConfig_t
, device
) },
1262 #ifdef USE_SDCARD_SDIO
1263 { "sdio_clk_bypass", VAR_UINT8
| HARDWARE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_SDIO_CONFIG
, offsetof(sdioConfig_t
, clockBypass
) },
1264 { "sdio_use_cache", VAR_UINT8
| HARDWARE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_SDIO_CONFIG
, offsetof(sdioConfig_t
, useCache
) },
1265 { "sdio_use_4bit_width", VAR_UINT8
| HARDWARE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_SDIO_CONFIG
, offsetof(sdioConfig_t
, use4BitWidth
) },
1267 { "sdio_device", VAR_UINT8
| HARDWARE_VALUE
, .config
.minmaxUnsigned
= { 0, SDIODEV_COUNT
}, PG_SDIO_CONFIG
, offsetof(sdioConfig_t
, device
) },
1273 { "osd_units", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_UNIT
}, PG_OSD_CONFIG
, offsetof(osdConfig_t
, units
) },
1275 // Please try to keep the OSD warnings in the same order as presented in the Configurator.
1276 // This makes it easier for the user to relate the CLI output as warnings are in the same relative
1277 // position as displayed in the GUI.
1278 { "osd_warn_arming_disable", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= OSD_WARNING_ARMING_DISABLE
, PG_OSD_CONFIG
, offsetof(osdConfig_t
, enabledWarnings
)},
1279 { "osd_warn_batt_not_full", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= OSD_WARNING_BATTERY_NOT_FULL
, PG_OSD_CONFIG
, offsetof(osdConfig_t
, enabledWarnings
)},
1280 { "osd_warn_batt_warning", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= OSD_WARNING_BATTERY_WARNING
, PG_OSD_CONFIG
, offsetof(osdConfig_t
, enabledWarnings
)},
1281 { "osd_warn_batt_critical", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= OSD_WARNING_BATTERY_CRITICAL
, PG_OSD_CONFIG
, offsetof(osdConfig_t
, enabledWarnings
)},
1282 { "osd_warn_visual_beeper", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= OSD_WARNING_VISUAL_BEEPER
, PG_OSD_CONFIG
, offsetof(osdConfig_t
, enabledWarnings
)},
1283 { "osd_warn_crash_flip", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= OSD_WARNING_CRASH_FLIP
, PG_OSD_CONFIG
, offsetof(osdConfig_t
, enabledWarnings
)},
1284 { "osd_warn_esc_fail", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= OSD_WARNING_ESC_FAIL
, PG_OSD_CONFIG
, offsetof(osdConfig_t
, enabledWarnings
)},
1285 #ifdef USE_ADC_INTERNAL
1286 { "osd_warn_core_temp", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= OSD_WARNING_CORE_TEMPERATURE
, PG_OSD_CONFIG
, offsetof(osdConfig_t
, enabledWarnings
)},
1288 #ifdef USE_RC_SMOOTHING_FILTER
1289 { "osd_warn_rc_smoothing", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= OSD_WARNING_RC_SMOOTHING
, PG_OSD_CONFIG
, offsetof(osdConfig_t
, enabledWarnings
)},
1291 { "osd_warn_fail_safe", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= OSD_WARNING_FAIL_SAFE
, PG_OSD_CONFIG
, offsetof(osdConfig_t
, enabledWarnings
)},
1292 #ifdef USE_LAUNCH_CONTROL
1293 { "osd_warn_launch_control", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= OSD_WARNING_LAUNCH_CONTROL
, PG_OSD_CONFIG
, offsetof(osdConfig_t
, enabledWarnings
)},
1295 { "osd_warn_no_gps_rescue", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= OSD_WARNING_GPS_RESCUE_UNAVAILABLE
, PG_OSD_CONFIG
, offsetof(osdConfig_t
, enabledWarnings
)},
1296 { "osd_warn_gps_rescue_disabled", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= OSD_WARNING_GPS_RESCUE_DISABLED
, PG_OSD_CONFIG
, offsetof(osdConfig_t
, enabledWarnings
)},
1297 { "osd_warn_rssi", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= OSD_WARNING_RSSI
, PG_OSD_CONFIG
, offsetof(osdConfig_t
, enabledWarnings
)},
1298 #ifdef USE_RX_LINK_QUALITY_INFO
1299 { "osd_warn_link_quality", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= OSD_WARNING_LINK_QUALITY
, PG_OSD_CONFIG
, offsetof(osdConfig_t
, enabledWarnings
)},
1301 #if defined(USE_RX_RSSI_DBM)
1302 { "osd_warn_rssi_dbm", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= OSD_WARNING_RSSI_DBM
, PG_OSD_CONFIG
, offsetof(osdConfig_t
, enabledWarnings
)},
1304 { "osd_warn_over_cap", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= OSD_WARNING_OVER_CAP
, PG_OSD_CONFIG
, offsetof(osdConfig_t
, enabledWarnings
)},
1306 { "osd_rssi_alarm", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 100 }, PG_OSD_CONFIG
, offsetof(osdConfig_t
, rssi_alarm
) },
1307 #ifdef USE_RX_LINK_QUALITY_INFO
1308 { "osd_link_quality_alarm", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 100 }, PG_OSD_CONFIG
, offsetof(osdConfig_t
, link_quality_alarm
) },
1310 #ifdef USE_RX_RSSI_DBM
1311 { "osd_rssi_dbm_alarm", VAR_INT16
| MASTER_VALUE
, .config
.minmax
= { CRSF_RSSI_MIN
, CRSF_SNR_MAX
}, PG_OSD_CONFIG
, offsetof(osdConfig_t
, rssi_dbm_alarm
) },
1313 { "osd_cap_alarm", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 20000 }, PG_OSD_CONFIG
, offsetof(osdConfig_t
, cap_alarm
) },
1314 { "osd_alt_alarm", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 10000 }, PG_OSD_CONFIG
, offsetof(osdConfig_t
, alt_alarm
) },
1315 { "osd_distance_alarm", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, UINT16_MAX
}, PG_OSD_CONFIG
, offsetof(osdConfig_t
, distance_alarm
) },
1316 { "osd_esc_temp_alarm", VAR_INT8
| MASTER_VALUE
, .config
.minmax
= { INT8_MIN
, INT8_MAX
}, PG_OSD_CONFIG
, offsetof(osdConfig_t
, esc_temp_alarm
) },
1317 { "osd_esc_rpm_alarm", VAR_INT16
| MASTER_VALUE
, .config
.minmax
= { ESC_RPM_ALARM_OFF
, INT16_MAX
}, PG_OSD_CONFIG
, offsetof(osdConfig_t
, esc_rpm_alarm
) },
1318 { "osd_esc_current_alarm", VAR_INT16
| MASTER_VALUE
, .config
.minmax
= { ESC_CURRENT_ALARM_OFF
, INT16_MAX
}, PG_OSD_CONFIG
, offsetof(osdConfig_t
, esc_current_alarm
) },
1319 #ifdef USE_ADC_INTERNAL
1320 { "osd_core_temp_alarm", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, UINT8_MAX
}, PG_OSD_CONFIG
, offsetof(osdConfig_t
, core_temp_alarm
) },
1323 { "osd_ah_max_pit", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 90 }, PG_OSD_CONFIG
, offsetof(osdConfig_t
, ahMaxPitch
) },
1324 { "osd_ah_max_rol", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 90 }, PG_OSD_CONFIG
, offsetof(osdConfig_t
, ahMaxRoll
) },
1325 { "osd_ah_invert", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_OSD_CONFIG
, offsetof(osdConfig_t
, ahInvert
) },
1326 { "osd_logo_on_arming", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OSD_LOGO_ON_ARMING
}, PG_OSD_CONFIG
, offsetof(osdConfig_t
, logo_on_arming
) },
1327 { "osd_logo_on_arming_duration",VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 5, 50 }, PG_OSD_CONFIG
, offsetof(osdConfig_t
, logo_on_arming_duration
) },
1329 { "osd_tim1", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, INT16_MAX
}, PG_OSD_CONFIG
, offsetof(osdConfig_t
, timers
[OSD_TIMER_1
]) },
1330 { "osd_tim2", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, INT16_MAX
}, PG_OSD_CONFIG
, offsetof(osdConfig_t
, timers
[OSD_TIMER_2
]) },
1332 { "osd_vbat_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_MAIN_BATT_VOLTAGE
]) },
1333 { "osd_rssi_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_RSSI_VALUE
]) },
1334 #ifdef USE_RX_LINK_QUALITY_INFO
1335 { "osd_link_quality_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_LINK_QUALITY
]) },
1337 #ifdef USE_RX_LINK_UPLINK_POWER
1338 { "osd_link_tx_power_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_TX_UPLINK_POWER
]) },
1340 #ifdef USE_RX_RSSI_DBM
1341 { "osd_rssi_dbm_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_RSSI_DBM_VALUE
]) },
1343 { "osd_tim_1_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_ITEM_TIMER_1
]) },
1344 { "osd_tim_2_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_ITEM_TIMER_2
]) },
1345 { "osd_remaining_time_estimate_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_REMAINING_TIME_ESTIMATE
]) },
1346 { "osd_flymode_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_FLYMODE
]) },
1347 { "osd_anti_gravity_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_ANTI_GRAVITY
]) },
1348 { "osd_g_force_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_G_FORCE
]) },
1349 { "osd_throttle_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_THROTTLE_POS
]) },
1350 { "osd_vtx_channel_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_VTX_CHANNEL
]) },
1351 { "osd_crosshairs_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_CROSSHAIRS
]) },
1352 { "osd_ah_sbar_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_HORIZON_SIDEBARS
]) },
1353 { "osd_ah_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_ARTIFICIAL_HORIZON
]) },
1354 { "osd_current_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_CURRENT_DRAW
]) },
1355 { "osd_mah_drawn_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_MAH_DRAWN
]) },
1356 { "osd_motor_diag_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_MOTOR_DIAG
]) },
1357 { "osd_craft_name_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_CRAFT_NAME
]) },
1358 { "osd_display_name_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_DISPLAY_NAME
]) },
1359 { "osd_gps_speed_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_GPS_SPEED
]) },
1360 { "osd_gps_lon_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_GPS_LON
]) },
1361 { "osd_gps_lat_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_GPS_LAT
]) },
1362 { "osd_gps_sats_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_GPS_SATS
]) },
1363 { "osd_home_dir_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_HOME_DIR
]) },
1364 { "osd_home_dist_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_HOME_DIST
]) },
1365 { "osd_flight_dist_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_FLIGHT_DIST
]) },
1366 { "osd_compass_bar_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_COMPASS_BAR
]) },
1367 { "osd_altitude_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_ALTITUDE
]) },
1368 { "osd_pid_roll_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_ROLL_PIDS
]) },
1369 { "osd_pid_pitch_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_PITCH_PIDS
]) },
1370 { "osd_pid_yaw_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_YAW_PIDS
]) },
1371 { "osd_debug_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_DEBUG
]) },
1372 { "osd_power_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_POWER
]) },
1373 { "osd_pidrate_profile_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_PIDRATE_PROFILE
]) },
1374 { "osd_warnings_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_WARNINGS
]) },
1375 { "osd_avg_cell_voltage_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_AVG_CELL_VOLTAGE
]) },
1376 { "osd_pit_ang_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_PITCH_ANGLE
]) },
1377 { "osd_rol_ang_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_ROLL_ANGLE
]) },
1378 { "osd_battery_usage_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_MAIN_BATT_USAGE
]) },
1379 { "osd_disarmed_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_DISARMED
]) },
1380 { "osd_nheading_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_NUMERICAL_HEADING
]) },
1381 { "osd_up_down_reference_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_UP_DOWN_REFERENCE
]) },
1383 { "osd_nvario_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_NUMERICAL_VARIO
]) },
1385 { "osd_esc_tmp_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_ESC_TMP
]) },
1386 { "osd_esc_rpm_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_ESC_RPM
]) },
1387 { "osd_esc_rpm_freq_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_ESC_RPM_FREQ
]) },
1388 { "osd_rtc_date_time_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_RTC_DATETIME
]) },
1389 { "osd_adjustment_range_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_ADJUSTMENT_RANGE
]) },
1390 { "osd_flip_arrow_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_FLIP_ARROW
]) },
1391 #ifdef USE_ADC_INTERNAL
1392 { "osd_core_temp_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_CORE_TEMPERATURE
]) },
1395 { "osd_log_status_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_LOG_STATUS
]) },
1398 #ifdef USE_OSD_STICK_OVERLAY
1399 { "osd_stick_overlay_left_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_STICK_OVERLAY_LEFT
]) },
1400 { "osd_stick_overlay_right_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_STICK_OVERLAY_RIGHT
]) },
1402 { "osd_stick_overlay_radio_mode", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 1, 4 }, PG_OSD_CONFIG
, offsetof(osdConfig_t
, overlay_radio_mode
) },
1405 #ifdef USE_PROFILE_NAMES
1406 { "osd_rate_profile_name_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_RATE_PROFILE_NAME
]) },
1407 { "osd_pid_profile_name_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_PID_PROFILE_NAME
]) },
1410 #ifdef USE_OSD_PROFILES
1411 { "osd_profile_name_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_PROFILE_NAME
]) },
1414 { "osd_rcchannels_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_RC_CHANNELS
]) },
1415 { "osd_camera_frame_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_CAMERA_FRAME
]) },
1416 { "osd_efficiency_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_EFFICIENCY
]) },
1417 { "osd_total_flights_pos", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, OSD_POSCFG_MAX
}, PG_OSD_ELEMENT_CONFIG
, offsetof(osdElementConfig_t
, item_pos
[OSD_TOTAL_FLIGHTS
]) },
1419 // OSD stats enabled flags are stored as bitmapped values inside a 32bit parameter
1420 // It is recommended to keep the settings order the same as the enumeration. This way the settings are displayed in the cli in the same order making it easier on the users
1421 { "osd_stat_rtc_date_time", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= OSD_STAT_RTC_DATE_TIME
, PG_OSD_CONFIG
, offsetof(osdConfig_t
, enabled_stats
)},
1422 { "osd_stat_tim_1", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= OSD_STAT_TIMER_1
, PG_OSD_CONFIG
, offsetof(osdConfig_t
, enabled_stats
)},
1423 { "osd_stat_tim_2", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= OSD_STAT_TIMER_2
, PG_OSD_CONFIG
, offsetof(osdConfig_t
, enabled_stats
)},
1424 { "osd_stat_max_spd", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= OSD_STAT_MAX_SPEED
, PG_OSD_CONFIG
, offsetof(osdConfig_t
, enabled_stats
)},
1425 { "osd_stat_max_dist", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= OSD_STAT_MAX_DISTANCE
, PG_OSD_CONFIG
, offsetof(osdConfig_t
, enabled_stats
)},
1426 { "osd_stat_min_batt", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= OSD_STAT_MIN_BATTERY
, PG_OSD_CONFIG
, offsetof(osdConfig_t
, enabled_stats
)},
1427 { "osd_stat_endbatt", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= OSD_STAT_END_BATTERY
, PG_OSD_CONFIG
, offsetof(osdConfig_t
, enabled_stats
)},
1428 { "osd_stat_battery", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= OSD_STAT_BATTERY
, PG_OSD_CONFIG
, offsetof(osdConfig_t
, enabled_stats
)},
1429 { "osd_stat_min_rssi", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= OSD_STAT_MIN_RSSI
, PG_OSD_CONFIG
, offsetof(osdConfig_t
, enabled_stats
)},
1430 { "osd_stat_max_curr", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= OSD_STAT_MAX_CURRENT
, PG_OSD_CONFIG
, offsetof(osdConfig_t
, enabled_stats
)},
1431 { "osd_stat_used_mah", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= OSD_STAT_USED_MAH
, PG_OSD_CONFIG
, offsetof(osdConfig_t
, enabled_stats
)},
1432 { "osd_stat_max_alt", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= OSD_STAT_MAX_ALTITUDE
, PG_OSD_CONFIG
, offsetof(osdConfig_t
, enabled_stats
)},
1433 { "osd_stat_bbox", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= OSD_STAT_BLACKBOX
, PG_OSD_CONFIG
, offsetof(osdConfig_t
, enabled_stats
)},
1434 { "osd_stat_bb_no", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= OSD_STAT_BLACKBOX_NUMBER
, PG_OSD_CONFIG
, offsetof(osdConfig_t
, enabled_stats
)},
1435 { "osd_stat_max_g_force", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= OSD_STAT_MAX_G_FORCE
, PG_OSD_CONFIG
, offsetof(osdConfig_t
, enabled_stats
)},
1436 { "osd_stat_max_esc_temp", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= OSD_STAT_MAX_ESC_TEMP
, PG_OSD_CONFIG
, offsetof(osdConfig_t
, enabled_stats
)},
1437 { "osd_stat_max_esc_rpm", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= OSD_STAT_MAX_ESC_RPM
, PG_OSD_CONFIG
, offsetof(osdConfig_t
, enabled_stats
)},
1438 { "osd_stat_min_link_quality", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= OSD_STAT_MIN_LINK_QUALITY
,PG_OSD_CONFIG
, offsetof(osdConfig_t
, enabled_stats
)},
1439 { "osd_stat_flight_dist", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= OSD_STAT_FLIGHT_DISTANCE
, PG_OSD_CONFIG
, offsetof(osdConfig_t
, enabled_stats
)},
1440 #ifdef USE_DYN_NOTCH_FILTER
1441 { "osd_stat_max_fft", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= OSD_STAT_MAX_FFT
, PG_OSD_CONFIG
, offsetof(osdConfig_t
, enabled_stats
)},
1443 #ifdef USE_PERSISTENT_STATS
1444 { "osd_stat_total_flights", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= OSD_STAT_TOTAL_FLIGHTS
, PG_OSD_CONFIG
, offsetof(osdConfig_t
, enabled_stats
)},
1445 { "osd_stat_total_time", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= OSD_STAT_TOTAL_TIME
, PG_OSD_CONFIG
, offsetof(osdConfig_t
, enabled_stats
)},
1446 { "osd_stat_total_dist", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= OSD_STAT_TOTAL_DIST
, PG_OSD_CONFIG
, offsetof(osdConfig_t
, enabled_stats
)},
1448 #ifdef USE_RX_RSSI_DBM
1449 { "osd_stat_min_rssi_dbm", VAR_UINT32
| MASTER_VALUE
| MODE_BITSET
, .config
.bitpos
= OSD_STAT_MIN_RSSI_DBM
, PG_OSD_CONFIG
, offsetof(osdConfig_t
, enabled_stats
)},
1452 #ifdef USE_OSD_PROFILES
1453 { "osd_profile", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 1, OSD_PROFILE_COUNT
}, PG_OSD_CONFIG
, offsetof(osdConfig_t
, osdProfileIndex
) },
1454 { "osd_profile_1_name", VAR_UINT8
| MASTER_VALUE
| MODE_STRING
, .config
.string
= { 1, OSD_PROFILE_NAME_LENGTH
, STRING_FLAGS_NONE
}, PG_OSD_CONFIG
, offsetof(osdConfig_t
, profile
[0]) },
1455 { "osd_profile_2_name", VAR_UINT8
| MASTER_VALUE
| MODE_STRING
, .config
.string
= { 1, OSD_PROFILE_NAME_LENGTH
, STRING_FLAGS_NONE
}, PG_OSD_CONFIG
, offsetof(osdConfig_t
, profile
[1]) },
1456 { "osd_profile_3_name", VAR_UINT8
| MASTER_VALUE
| MODE_STRING
, .config
.string
= { 1, OSD_PROFILE_NAME_LENGTH
, STRING_FLAGS_NONE
}, PG_OSD_CONFIG
, offsetof(osdConfig_t
, profile
[2]) },
1458 { "osd_gps_sats_show_hdop", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_OSD_CONFIG
, offsetof(osdConfig_t
, gps_sats_show_hdop
) },
1459 { "osd_displayport_device", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OSD_DISPLAYPORT_DEVICE
}, PG_OSD_CONFIG
, offsetof(osdConfig_t
, displayPortDevice
) },
1461 { "osd_rcchannels", VAR_INT8
| MASTER_VALUE
| MODE_ARRAY
, .config
.array
.length
= OSD_RCCHANNELS_COUNT
, PG_OSD_CONFIG
, offsetof(osdConfig_t
, rcChannels
) },
1462 { "osd_camera_frame_width", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { OSD_CAMERA_FRAME_MIN_WIDTH
, OSD_CAMERA_FRAME_MAX_WIDTH
}, PG_OSD_CONFIG
, offsetof(osdConfig_t
, camera_frame_width
) },
1463 { "osd_camera_frame_height", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { OSD_CAMERA_FRAME_MIN_HEIGHT
, OSD_CAMERA_FRAME_MAX_HEIGHT
}, PG_OSD_CONFIG
, offsetof(osdConfig_t
, camera_frame_height
) },
1464 { "osd_stat_avg_cell_value", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_OSD_CONFIG
, offsetof(osdConfig_t
, stat_show_cell_value
) },
1465 { "osd_task_frequency", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { OSD_TASK_FREQUENCY_MIN
, OSD_TASK_FREQUENCY_MAX
}, PG_OSD_CONFIG
, offsetof(osdConfig_t
, task_frequency
) },
1466 { "osd_menu_background", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_CMS_BACKGROUND
}, PG_OSD_CONFIG
, offsetof(osdConfig_t
, cms_background_type
) },
1467 #endif // end of #ifdef USE_OSD
1470 #if defined(STM32F4) || defined(STM32G4)
1471 { "system_hse_mhz", VAR_UINT8
| HARDWARE_VALUE
, .config
.minmaxUnsigned
= { 0, 30 }, PG_SYSTEM_CONFIG
, offsetof(systemConfig_t
, hseMhz
) },
1473 { "task_statistics", VAR_INT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_SYSTEM_CONFIG
, offsetof(systemConfig_t
, task_statistics
) },
1474 { "debug_mode", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_DEBUG
}, PG_SYSTEM_CONFIG
, offsetof(systemConfig_t
, debug_mode
) },
1475 { "rate_6pos_switch", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_SYSTEM_CONFIG
, offsetof(systemConfig_t
, rateProfile6PosSwitch
) },
1476 #ifdef USE_OVERCLOCK
1477 { "cpu_overclock", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OVERCLOCK
}, PG_SYSTEM_CONFIG
, offsetof(systemConfig_t
, cpu_overclock
) },
1479 { "pwr_on_arm_grace", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 30 }, PG_SYSTEM_CONFIG
, offsetof(systemConfig_t
, powerOnArmingGraceTime
) },
1480 { "scheduler_optimize_rate", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON_AUTO
}, PG_SYSTEM_CONFIG
, offsetof(systemConfig_t
, schedulerOptimizeRate
) },
1481 { "enable_stick_arming", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_SYSTEM_CONFIG
, offsetof(systemConfig_t
, enableStickArming
) },
1484 #ifdef USE_VTX_COMMON
1485 { "vtx_band", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, VTX_TABLE_MAX_BANDS
}, PG_VTX_SETTINGS_CONFIG
, offsetof(vtxSettingsConfig_t
, band
) },
1486 { "vtx_channel", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, VTX_TABLE_MAX_CHANNELS
}, PG_VTX_SETTINGS_CONFIG
, offsetof(vtxSettingsConfig_t
, channel
) },
1487 { "vtx_power", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, VTX_TABLE_MAX_POWER_LEVELS
- 1 }, PG_VTX_SETTINGS_CONFIG
, offsetof(vtxSettingsConfig_t
, power
) },
1488 { "vtx_low_power_disarm", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_VTX_LOW_POWER_DISARM
}, PG_VTX_SETTINGS_CONFIG
, offsetof(vtxSettingsConfig_t
, lowPowerDisarm
) },
1489 #ifdef VTX_SETTINGS_FREQCMD
1490 { "vtx_freq", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, VTX_SETTINGS_MAX_FREQUENCY_MHZ
}, PG_VTX_SETTINGS_CONFIG
, offsetof(vtxSettingsConfig_t
, freq
) },
1491 { "vtx_pit_mode_freq", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, VTX_SETTINGS_MAX_FREQUENCY_MHZ
}, PG_VTX_SETTINGS_CONFIG
, offsetof(vtxSettingsConfig_t
, pitModeFreq
) },
1496 #if defined(USE_VTX_CONTROL) && defined(USE_VTX_COMMON)
1497 { "vtx_halfduplex", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_VTX_CONFIG
, offsetof(vtxConfig_t
, halfDuplex
) },
1501 #ifdef USE_VTX_RTC6705
1502 { "vtx_spi_bus", VAR_UINT8
| HARDWARE_VALUE
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, SPIDEV_COUNT
}, PG_VTX_IO_CONFIG
, offsetof(vtxIOConfig_t
, spiDevice
) },
1506 #if defined(USE_MAX7456) || defined(USE_FRSKYOSD) || defined(USE_MSP_DISPLAYPORT)
1507 { "vcd_video_system", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_VIDEO_SYSTEM
}, PG_VCD_CONFIG
, offsetof(vcdProfile_t
, video_system
) },
1509 #if defined(USE_MAX7456)
1510 { "vcd_h_offset", VAR_INT8
| MASTER_VALUE
, .config
.minmax
= { -32, 31 }, PG_VCD_CONFIG
, offsetof(vcdProfile_t
, h_offset
) },
1511 { "vcd_v_offset", VAR_INT8
| MASTER_VALUE
, .config
.minmax
= { -15, 16 }, PG_VCD_CONFIG
, offsetof(vcdProfile_t
, v_offset
) },
1514 // PG_MAX7456_CONFIG
1516 { "max7456_clock", VAR_UINT8
| HARDWARE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_MAX7456_CLOCK
}, PG_MAX7456_CONFIG
, offsetof(max7456Config_t
, clockConfig
) },
1517 { "max7456_spi_bus", VAR_UINT8
| HARDWARE_VALUE
, .config
.minmaxUnsigned
= { 0, SPIDEV_COUNT
}, PG_MAX7456_CONFIG
, offsetof(max7456Config_t
, spiDevice
) },
1518 { "max7456_preinit_opu", VAR_UINT8
| HARDWARE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_MAX7456_CONFIG
, offsetof(max7456Config_t
, preInitOPU
) },
1521 // PG_DISPLAY_PORT_MSP_CONFIG
1522 #ifdef USE_MSP_DISPLAYPORT
1523 { "displayport_msp_col_adjust", VAR_INT8
| MASTER_VALUE
, .config
.minmax
= { -6, 0 }, PG_DISPLAY_PORT_MSP_CONFIG
, offsetof(displayPortProfile_t
, colAdjust
) },
1524 { "displayport_msp_row_adjust", VAR_INT8
| MASTER_VALUE
, .config
.minmax
= { -3, 0 }, PG_DISPLAY_PORT_MSP_CONFIG
, offsetof(displayPortProfile_t
, rowAdjust
) },
1525 { "displayport_msp_serial", VAR_INT8
| MASTER_VALUE
, .config
.minmax
= { SERIAL_PORT_NONE
, SERIAL_PORT_IDENTIFIER_MAX
}, PG_DISPLAY_PORT_MSP_CONFIG
, offsetof(displayPortProfile_t
, displayPortSerial
) },
1526 { "displayport_msp_attrs", VAR_UINT8
| MASTER_VALUE
| MODE_ARRAY
, .config
.array
.length
= 4, PG_DISPLAY_PORT_MSP_CONFIG
, offsetof(displayPortProfile_t
, attrValues
) },
1527 { "displayport_msp_use_device_blink", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_DISPLAY_PORT_MSP_CONFIG
, offsetof(displayPortProfile_t
, useDeviceBlink
) },
1530 // PG_DISPLAY_PORT_MSP_CONFIG
1532 { "displayport_max7456_col_adjust", VAR_INT8
| MASTER_VALUE
, .config
.minmax
= { -6, 0 }, PG_DISPLAY_PORT_MAX7456_CONFIG
, offsetof(displayPortProfile_t
, colAdjust
) },
1533 { "displayport_max7456_row_adjust", VAR_INT8
| MASTER_VALUE
, .config
.minmax
= { -3, 0 }, PG_DISPLAY_PORT_MAX7456_CONFIG
, offsetof(displayPortProfile_t
, rowAdjust
) },
1534 { "displayport_max7456_inv", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_DISPLAY_PORT_MAX7456_CONFIG
, offsetof(displayPortProfile_t
, invert
) },
1535 { "displayport_max7456_blk", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 3 }, PG_DISPLAY_PORT_MAX7456_CONFIG
, offsetof(displayPortProfile_t
, blackBrightness
) },
1536 { "displayport_max7456_wht", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 3 }, PG_DISPLAY_PORT_MAX7456_CONFIG
, offsetof(displayPortProfile_t
, whiteBrightness
) },
1539 #ifdef USE_ESC_SENSOR
1540 { "esc_sensor_halfduplex", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_ESC_SENSOR_CONFIG
, offsetof(escSensorConfig_t
, halfDuplex
) },
1541 { "esc_sensor_current_offset", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 16000 }, PG_ESC_SENSOR_CONFIG
, offsetof(escSensorConfig_t
, offset
) },
1544 #ifdef USE_RX_FRSKY_SPI
1545 { "frsky_spi_autobind", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_RX_CC2500_SPI_CONFIG
, offsetof(rxCc2500SpiConfig_t
, autoBind
) },
1546 { "frsky_spi_tx_id", VAR_UINT8
| MASTER_VALUE
| MODE_ARRAY
, .config
.array
.length
= 3, PG_RX_CC2500_SPI_CONFIG
, offsetof(rxCc2500SpiConfig_t
, bindTxId
) },
1547 { "frsky_spi_offset", VAR_INT8
| MASTER_VALUE
, .config
.minmax
= { -127, 127 }, PG_RX_CC2500_SPI_CONFIG
, offsetof(rxCc2500SpiConfig_t
, bindOffset
) },
1548 { "frsky_spi_bind_hop_data", VAR_UINT8
| MASTER_VALUE
| MODE_ARRAY
, .config
.array
.length
= 50, PG_RX_CC2500_SPI_CONFIG
, offsetof(rxCc2500SpiConfig_t
, bindHopData
) },
1549 { "frsky_x_rx_num", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, UINT8_MAX
}, PG_RX_CC2500_SPI_CONFIG
, offsetof(rxCc2500SpiConfig_t
, rxNum
) },
1550 { "frsky_spi_a1_source", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_RX_FRSKY_SPI_A1_SOURCE
}, PG_RX_CC2500_SPI_CONFIG
, offsetof(rxCc2500SpiConfig_t
, a1Source
) },
1551 { "cc2500_spi_chip_detect", VAR_UINT8
| HARDWARE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_RX_CC2500_SPI_CONFIG
, offsetof(rxCc2500SpiConfig_t
, chipDetectEnabled
) },
1553 { "led_inversion", VAR_UINT8
| HARDWARE_VALUE
, .config
.minmaxUnsigned
= { 0, ((1 << STATUS_LED_NUMBER
) - 1) }, PG_STATUS_LED_CONFIG
, offsetof(statusLedConfig_t
, inversion
) },
1554 #ifdef USE_DASHBOARD
1555 { "dashboard_i2c_bus", VAR_UINT8
| HARDWARE_VALUE
, .config
.minmaxUnsigned
= { 0, I2CDEV_COUNT
}, PG_DASHBOARD_CONFIG
, offsetof(dashboardConfig_t
, device
) },
1556 { "dashboard_i2c_addr", VAR_UINT8
| HARDWARE_VALUE
, .config
.minmaxUnsigned
= { I2C_ADDR7_MIN
, I2C_ADDR7_MAX
}, PG_DASHBOARD_CONFIG
, offsetof(dashboardConfig_t
, address
) },
1559 // PG_CAMERA_CONTROL_CONFIG
1560 #ifdef USE_CAMERA_CONTROL
1561 { "camera_control_mode", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_CAMERA_CONTROL_MODE
}, PG_CAMERA_CONTROL_CONFIG
, offsetof(cameraControlConfig_t
, mode
) },
1562 { "camera_control_ref_voltage", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 200, 400 }, PG_CAMERA_CONTROL_CONFIG
, offsetof(cameraControlConfig_t
, refVoltage
) },
1563 { "camera_control_key_delay", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 100, 500 }, PG_CAMERA_CONTROL_CONFIG
, offsetof(cameraControlConfig_t
, keyDelayMs
) },
1564 { "camera_control_internal_resistance", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 10, 1000 }, PG_CAMERA_CONTROL_CONFIG
, offsetof(cameraControlConfig_t
, internalResistance
) },
1565 { "camera_control_button_resistance", VAR_UINT16
| MASTER_VALUE
| MODE_ARRAY
, .config
.array
.length
= CAMERA_CONTROL_KEYS_COUNT
, PG_CAMERA_CONTROL_CONFIG
, offsetof(cameraControlConfig_t
, buttonResistanceValues
) },
1566 { "camera_control_inverted", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_CAMERA_CONTROL_CONFIG
, offsetof(cameraControlConfig_t
, inverted
) },
1569 // PG_RANGEFINDER_CONFIG
1570 #ifdef USE_RANGEFINDER
1571 { "rangefinder_hardware", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_RANGEFINDER_HARDWARE
}, PG_RANGEFINDER_CONFIG
, offsetof(rangefinderConfig_t
, rangefinder_hardware
) },
1576 { "pinio_config", VAR_UINT8
| HARDWARE_VALUE
| MODE_ARRAY
, .config
.array
.length
= PINIO_COUNT
, PG_PINIO_CONFIG
, offsetof(pinioConfig_t
, config
) },
1578 { "pinio_box", VAR_UINT8
| HARDWARE_VALUE
| MODE_ARRAY
, .config
.array
.length
= PINIO_COUNT
, PG_PINIOBOX_CONFIG
, offsetof(pinioBoxConfig_t
, permanentId
) },
1583 #ifdef USE_USB_CDC_HID
1584 { "usb_hid_cdc", VAR_UINT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_USB_CONFIG
, offsetof(usbDev_t
, type
) },
1587 { "usb_msc_pin_pullup", VAR_UINT8
| HARDWARE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_USB_CONFIG
, offsetof(usbDev_t
, mscButtonUsePullup
) },
1590 #ifdef USE_FLASH_CHIP
1591 { "flash_spi_bus", VAR_UINT8
| HARDWARE_VALUE
, .config
.minmaxUnsigned
= { 0, SPIDEV_COUNT
}, PG_FLASH_CONFIG
, offsetof(flashConfig_t
, spiDevice
) },
1595 { "rcdevice_init_dev_attempts", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 10 }, PG_RCDEVICE_CONFIG
, offsetof(rcdeviceConfig_t
, initDeviceAttempts
) },
1596 { "rcdevice_init_dev_attempt_interval", VAR_UINT32
| MASTER_VALUE
, .config
.u32Max
= 5000, PG_RCDEVICE_CONFIG
, offsetof(rcdeviceConfig_t
, initDeviceAttemptInterval
) },
1597 { "rcdevice_protocol_version", VAR_UINT8
| MASTER_VALUE
, .config
.minmax
= { 0, 1 }, PG_RCDEVICE_CONFIG
, offsetof(rcdeviceConfig_t
, protocolVersion
) },
1598 { "rcdevice_feature", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= {0, 65535}, PG_RCDEVICE_CONFIG
, offsetof(rcdeviceConfig_t
, feature
) },
1601 // PG_GYRO_DEVICE_CONFIG
1602 { "gyro_1_bustype", VAR_UINT8
| HARDWARE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_BUS_TYPE
}, PG_GYRO_DEVICE_CONFIG
, PG_ARRAY_ELEMENT_OFFSET(gyroDeviceConfig_t
, 0, busType
) },
1603 { "gyro_1_spibus", VAR_UINT8
| HARDWARE_VALUE
, .config
.minmaxUnsigned
= { 0, SPIDEV_COUNT
}, PG_GYRO_DEVICE_CONFIG
, PG_ARRAY_ELEMENT_OFFSET(gyroDeviceConfig_t
, 0, spiBus
) },
1604 { "gyro_1_i2cBus", VAR_UINT8
| HARDWARE_VALUE
, .config
.minmaxUnsigned
= { 0, I2CDEV_COUNT
}, PG_GYRO_DEVICE_CONFIG
, PG_ARRAY_ELEMENT_OFFSET(gyroDeviceConfig_t
, 0, i2cBus
) },
1605 { "gyro_1_i2c_address", VAR_UINT8
| HARDWARE_VALUE
, .config
.minmaxUnsigned
= { 0, I2C_ADDR7_MAX
}, PG_GYRO_DEVICE_CONFIG
, PG_ARRAY_ELEMENT_OFFSET(gyroDeviceConfig_t
, 0, i2cAddress
) },
1606 { "gyro_1_sensor_align", VAR_UINT8
| HARDWARE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_ALIGNMENT
}, PG_GYRO_DEVICE_CONFIG
, PG_ARRAY_ELEMENT_OFFSET(gyroDeviceConfig_t
, 0, alignment
) },
1607 { "gyro_1_align_roll", VAR_INT16
| HARDWARE_VALUE
, .config
.minmax
= { -3600, 3600 }, PG_GYRO_DEVICE_CONFIG
, PG_ARRAY_ELEMENT_OFFSET(gyroDeviceConfig_t
, 0, customAlignment
.roll
) },
1608 { "gyro_1_align_pitch", VAR_INT16
| HARDWARE_VALUE
, .config
.minmax
= { -3600, 3600 }, PG_GYRO_DEVICE_CONFIG
, PG_ARRAY_ELEMENT_OFFSET(gyroDeviceConfig_t
, 0, customAlignment
.pitch
) },
1609 { "gyro_1_align_yaw", VAR_INT16
| HARDWARE_VALUE
, .config
.minmax
= { -3600, 3600 }, PG_GYRO_DEVICE_CONFIG
, PG_ARRAY_ELEMENT_OFFSET(gyroDeviceConfig_t
, 0, customAlignment
.yaw
) },
1610 #ifdef USE_MULTI_GYRO
1611 { "gyro_2_bustype", VAR_UINT8
| HARDWARE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_BUS_TYPE
}, PG_GYRO_DEVICE_CONFIG
, PG_ARRAY_ELEMENT_OFFSET(gyroDeviceConfig_t
, 1, busType
) },
1612 { "gyro_2_spibus", VAR_UINT8
| HARDWARE_VALUE
, .config
.minmaxUnsigned
= { 0, SPIDEV_COUNT
}, PG_GYRO_DEVICE_CONFIG
, PG_ARRAY_ELEMENT_OFFSET(gyroDeviceConfig_t
, 1, spiBus
) },
1613 { "gyro_2_i2cBus", VAR_UINT8
| HARDWARE_VALUE
, .config
.minmaxUnsigned
= { 0, I2CDEV_COUNT
}, PG_GYRO_DEVICE_CONFIG
, PG_ARRAY_ELEMENT_OFFSET(gyroDeviceConfig_t
, 1, i2cBus
) },
1614 { "gyro_2_i2c_address", VAR_UINT8
| HARDWARE_VALUE
, .config
.minmaxUnsigned
= { 0, I2C_ADDR7_MAX
}, PG_GYRO_DEVICE_CONFIG
, PG_ARRAY_ELEMENT_OFFSET(gyroDeviceConfig_t
, 1, i2cAddress
) },
1615 { "gyro_2_sensor_align", VAR_UINT8
| HARDWARE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_ALIGNMENT
}, PG_GYRO_DEVICE_CONFIG
, PG_ARRAY_ELEMENT_OFFSET(gyroDeviceConfig_t
, 1, alignment
) },
1616 { "gyro_2_align_roll", VAR_INT16
| HARDWARE_VALUE
, .config
.minmax
= { -3600, 3600 }, PG_GYRO_DEVICE_CONFIG
, PG_ARRAY_ELEMENT_OFFSET(gyroDeviceConfig_t
, 1, customAlignment
.roll
) },
1617 { "gyro_2_align_pitch", VAR_INT16
| HARDWARE_VALUE
, .config
.minmax
= { -3600, 3600 }, PG_GYRO_DEVICE_CONFIG
, PG_ARRAY_ELEMENT_OFFSET(gyroDeviceConfig_t
, 1, customAlignment
.pitch
) },
1618 { "gyro_2_align_yaw", VAR_INT16
| HARDWARE_VALUE
, .config
.minmax
= { -3600, 3600 }, PG_GYRO_DEVICE_CONFIG
, PG_ARRAY_ELEMENT_OFFSET(gyroDeviceConfig_t
, 1, customAlignment
.yaw
) },
1620 #ifdef I2C_FULL_RECONFIGURABILITY
1621 #ifdef USE_I2C_DEVICE_1
1622 { "i2c1_pullup", VAR_UINT8
| HARDWARE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_I2C_CONFIG
, PG_ARRAY_ELEMENT_OFFSET(i2cConfig_t
, 0, pullUp
) },
1623 { "i2c1_clockspeed_khz", VAR_UINT16
| HARDWARE_VALUE
, .config
.minmax
= { I2C_CLOCKSPEED_MIN_KHZ
, I2C_CLOCKSPEED_MAX_KHZ
}, PG_I2C_CONFIG
, PG_ARRAY_ELEMENT_OFFSET(i2cConfig_t
, 0, clockSpeed
) },
1625 #ifdef USE_I2C_DEVICE_2
1626 { "i2c2_pullup", VAR_UINT8
| HARDWARE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_I2C_CONFIG
, PG_ARRAY_ELEMENT_OFFSET(i2cConfig_t
, 1, pullUp
) },
1627 { "i2c2_clockspeed_khz", VAR_UINT16
| HARDWARE_VALUE
, .config
.minmax
= { I2C_CLOCKSPEED_MIN_KHZ
, I2C_CLOCKSPEED_MAX_KHZ
}, PG_I2C_CONFIG
, PG_ARRAY_ELEMENT_OFFSET(i2cConfig_t
, 1, clockSpeed
) },
1629 #ifdef USE_I2C_DEVICE_3
1630 { "i2c3_pullup", VAR_UINT8
| HARDWARE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_I2C_CONFIG
, PG_ARRAY_ELEMENT_OFFSET(i2cConfig_t
, 2, pullUp
) },
1631 { "i2c3_clockspeed_khz", VAR_UINT16
| HARDWARE_VALUE
, .config
.minmax
= { I2C_CLOCKSPEED_MIN_KHZ
, I2C_CLOCKSPEED_MAX_KHZ
}, PG_I2C_CONFIG
, PG_ARRAY_ELEMENT_OFFSET(i2cConfig_t
, 2, clockSpeed
) },
1633 #ifdef USE_I2C_DEVICE_4
1634 { "i2c4_pullup", VAR_UINT8
| HARDWARE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_I2C_CONFIG
, PG_ARRAY_ELEMENT_OFFSET(i2cConfig_t
, 3, pullUp
) },
1635 { "i2c4_clockspeed_khz", VAR_UINT16
| HARDWARE_VALUE
, .config
.minmax
= { I2C_CLOCKSPEED_MIN_KHZ
, I2C_CLOCKSPEED_MAX_KHZ
}, PG_I2C_CONFIG
, PG_ARRAY_ELEMENT_OFFSET(i2cConfig_t
, 3, clockSpeed
) },
1640 { "mco_on_pa8", VAR_UINT8
| HARDWARE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_MCO_CONFIG
, PG_ARRAY_ELEMENT_OFFSET(mcoConfig_t
, 0, enabled
) },
1641 { "mco_source", VAR_UINT8
| HARDWARE_VALUE
, .config
.minmaxUnsigned
= { 0, MCO_SOURCE_COUNT
- 1 }, PG_MCO_CONFIG
, PG_ARRAY_ELEMENT_OFFSET(mcoConfig_t
, 0, source
) },
1642 { "mco_divider", VAR_UINT8
| HARDWARE_VALUE
, .config
.minmaxUnsigned
= { 0, MCO_DIVIDER_COUNT
- 1 }, PG_MCO_CONFIG
, PG_ARRAY_ELEMENT_OFFSET(mcoConfig_t
, 0, divider
) },
1644 { "mco2_on_pc9", VAR_UINT8
| HARDWARE_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_OFF_ON
}, PG_MCO_CONFIG
, PG_ARRAY_ELEMENT_OFFSET(mcoConfig_t
, 1, enabled
) },
1647 #ifdef USE_RX_SPEKTRUM
1648 { "spektrum_spi_protocol", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, UINT8_MAX
}, PG_RX_SPEKTRUM_SPI_CONFIG
, offsetof(spektrumConfig_t
, protocol
) },
1649 { "spektrum_spi_mfg_id", VAR_UINT8
| MASTER_VALUE
| MODE_ARRAY
, .config
.array
.length
= 4, PG_RX_SPEKTRUM_SPI_CONFIG
, offsetof(spektrumConfig_t
, mfgId
) },
1650 { "spektrum_spi_num_channels", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, DSM_MAX_CHANNEL_COUNT
}, PG_RX_SPEKTRUM_SPI_CONFIG
, offsetof(spektrumConfig_t
, numChannels
) },
1655 { "timezone_offset_minutes", VAR_INT16
| MASTER_VALUE
, .config
.minmax
= { TIMEZONE_OFFSET_MINUTES_MIN
, TIMEZONE_OFFSET_MINUTES_MAX
}, PG_TIME_CONFIG
, offsetof(timeConfig_t
, tz_offsetMinutes
) },
1658 #ifdef USE_RPM_FILTER
1659 { "rpm_filter_harmonics", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 3 }, PG_RPM_FILTER_CONFIG
, offsetof(rpmFilterConfig_t
, rpm_filter_harmonics
) },
1660 { "rpm_filter_q", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 250, 3000 }, PG_RPM_FILTER_CONFIG
, offsetof(rpmFilterConfig_t
, rpm_filter_q
) },
1661 { "rpm_filter_min_hz", VAR_UINT8
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 30, 200 }, PG_RPM_FILTER_CONFIG
, offsetof(rpmFilterConfig_t
, rpm_filter_min_hz
) },
1662 { "rpm_filter_fade_range_hz", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 0, 1000 }, PG_RPM_FILTER_CONFIG
, offsetof(rpmFilterConfig_t
, rpm_filter_fade_range_hz
) },
1663 { "rpm_filter_lpf_hz", VAR_UINT16
| MASTER_VALUE
, .config
.minmaxUnsigned
= { 100, 500 }, PG_RPM_FILTER_CONFIG
, offsetof(rpmFilterConfig_t
, rpm_filter_lpf_hz
) },
1666 #ifdef USE_RX_FLYSKY
1667 { "flysky_spi_tx_id", VAR_UINT32
| MASTER_VALUE
, .config
.u32Max
= UINT32_MAX
, PG_FLYSKY_CONFIG
, offsetof(flySkyConfig_t
, txId
) },
1668 { "flysky_spi_rf_channels", VAR_UINT8
| MASTER_VALUE
| MODE_ARRAY
, .config
.array
.length
= 16, PG_FLYSKY_CONFIG
, offsetof(flySkyConfig_t
, rfChannelMap
) },
1671 #ifdef USE_PERSISTENT_STATS
1672 { "stats_min_armed_time_s", VAR_INT8
| MASTER_VALUE
, .config
.minmax
= { STATS_OFF
, INT8_MAX
}, PG_STATS_CONFIG
, offsetof(statsConfig_t
, stats_min_armed_time_s
) },
1673 { "stats_total_flights", VAR_UINT32
| MASTER_VALUE
, .config
.u32Max
= UINT32_MAX
, PG_STATS_CONFIG
, offsetof(statsConfig_t
, stats_total_flights
) },
1675 { "stats_total_time_s", VAR_UINT32
| MASTER_VALUE
, .config
.u32Max
= UINT32_MAX
, PG_STATS_CONFIG
, offsetof(statsConfig_t
, stats_total_time_s
) },
1676 { "stats_total_dist_m", VAR_UINT32
| MASTER_VALUE
, .config
.u32Max
= UINT32_MAX
, PG_STATS_CONFIG
, offsetof(statsConfig_t
, stats_total_dist_m
) },
1678 { "name", VAR_UINT8
| MASTER_VALUE
| MODE_STRING
, .config
.string
= { 1, MAX_NAME_LENGTH
, STRING_FLAGS_NONE
}, PG_PILOT_CONFIG
, offsetof(pilotConfig_t
, name
) },
1680 { "display_name", VAR_UINT8
| MASTER_VALUE
| MODE_STRING
, .config
.string
= { 1, MAX_NAME_LENGTH
, STRING_FLAGS_NONE
}, PG_PILOT_CONFIG
, offsetof(pilotConfig_t
, displayName
) },
1684 { "position_alt_source", VAR_INT8
| MASTER_VALUE
| MODE_LOOKUP
, .config
.lookup
= { TABLE_POSITION_ALT_SOURCE
}, PG_POSITION
, offsetof(positionConfig_t
, altSource
) },
1686 // PG_MODE_ACTIVATION_CONFIG
1687 #if defined(USE_CUSTOM_BOX_NAMES)
1688 { "box_user_1_name", VAR_UINT8
| HARDWARE_VALUE
| MODE_STRING
, .config
.string
= { 1, MAX_BOX_USER_NAME_LENGTH
, STRING_FLAGS_NONE
}, PG_MODE_ACTIVATION_CONFIG
, offsetof(modeActivationConfig_t
, box_user_1_name
) },
1689 { "box_user_2_name", VAR_UINT8
| HARDWARE_VALUE
| MODE_STRING
, .config
.string
= { 1, MAX_BOX_USER_NAME_LENGTH
, STRING_FLAGS_NONE
}, PG_MODE_ACTIVATION_CONFIG
, offsetof(modeActivationConfig_t
, box_user_2_name
) },
1690 { "box_user_3_name", VAR_UINT8
| HARDWARE_VALUE
| MODE_STRING
, .config
.string
= { 1, MAX_BOX_USER_NAME_LENGTH
, STRING_FLAGS_NONE
}, PG_MODE_ACTIVATION_CONFIG
, offsetof(modeActivationConfig_t
, box_user_3_name
) },
1691 { "box_user_4_name", VAR_UINT8
| HARDWARE_VALUE
| MODE_STRING
, .config
.string
= { 1, MAX_BOX_USER_NAME_LENGTH
, STRING_FLAGS_NONE
}, PG_MODE_ACTIVATION_CONFIG
, offsetof(modeActivationConfig_t
, box_user_4_name
) },
1695 const uint16_t valueTableEntryCount
= ARRAYLEN(valueTable
);
1697 STATIC_ASSERT(LOOKUP_TABLE_COUNT
== ARRAYLEN(lookupTables
), LOOKUP_TABLE_COUNT_incorrect
);