mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 22:35:23 +03:00
Support for enabling individual ESC telemetry sensors.
Signed-off-by: Mark Hale <mark.hale@physics.org>
This commit is contained in:
parent
013a45e24b
commit
2b2b6e8c53
4 changed files with 46 additions and 27 deletions
|
@ -948,15 +948,13 @@ const clivalue_t valueTable[] = {
|
|||
#if defined(USE_TELEMETRY_IBUS)
|
||||
{ "ibus_sensor", VAR_UINT8 | MASTER_VALUE | MODE_ARRAY, .config.array.length = IBUS_SENSOR_COUNT, PG_TELEMETRY_CONFIG, offsetof(telemetryConfig_t, flysky_sensors)},
|
||||
#endif
|
||||
#if defined(USE_TELEMETRY_SMARTPORT)
|
||||
{ "smartport_use_extra_sensors", VAR_UINT8 | MASTER_VALUE | MODE_LOOKUP, .config.lookup = { TABLE_OFF_ON }, PG_TELEMETRY_CONFIG, offsetof(telemetryConfig_t, smartport_use_extra_sensors)},
|
||||
#endif
|
||||
#ifdef USE_TELEMETRY_MAVLINK
|
||||
// Support for misusing the heading field in MAVlink to indicate mAh drawn for Connex Prosight OSD
|
||||
// Set to 10 to show a tenth of your capacity drawn.
|
||||
// Set to $size_of_battery to get a percentage of battery used.
|
||||
{ "mavlink_mah_as_heading_divisor", VAR_UINT16 | MASTER_VALUE, .config.minmax = { 0, 30000 }, PG_TELEMETRY_CONFIG, offsetof(telemetryConfig_t, mavlink_mah_as_heading_divisor) },
|
||||
#endif
|
||||
{ "telemetry_disabled_sensors", VAR_UINT32 | MASTER_VALUE, .config.minmax = { 0, 15 }, PG_TELEMETRY_CONFIG, offsetof(telemetryConfig_t, disabledSensors)},
|
||||
#endif // USE_TELEMETRY
|
||||
|
||||
// PG_LED_STRIP_CONFIG
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue