mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 21:05:35 +03:00
Added pidAsTelemtry as option by CLI parameter
This commit is contained in:
parent
863156116f
commit
206098e127
4 changed files with 5 additions and 1 deletions
|
@ -266,6 +266,7 @@ void resetTelemetryConfig(telemetryConfig_t *telemetryConfig)
|
|||
telemetryConfig->frsky_vfas_precision = 0;
|
||||
telemetryConfig->frsky_vfas_cell_voltage = 0;
|
||||
telemetryConfig->hottAlarmSoundInterval = 5;
|
||||
telemetryConfig->pidValuesAsTelemetry = 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
@ -746,6 +746,7 @@ const clivalue_t valueTable[] = {
|
|||
{ "frsky_vfas_precision", VAR_UINT8 | MASTER_VALUE, &masterConfig.telemetryConfig.frsky_vfas_precision, .config.minmax = { FRSKY_VFAS_PRECISION_LOW, FRSKY_VFAS_PRECISION_HIGH } },
|
||||
{ "frsky_vfas_cell_voltage", VAR_UINT8 | MASTER_VALUE | MODE_LOOKUP, &masterConfig.telemetryConfig.frsky_vfas_cell_voltage, .config.lookup = { TABLE_OFF_ON } },
|
||||
{ "hott_alarm_sound_interval", VAR_UINT8 | MASTER_VALUE, &masterConfig.telemetryConfig.hottAlarmSoundInterval, .config.minmax = { 0, 120 } },
|
||||
{ "pid_values_as_telemetry", VAR_UINT8 | MASTER_VALUE | MODE_LOOKUP, &masterConfig.telemetryConfig.pidValuesAsTelemetry, .config.lookup = {TABLE_OFF_ON } },
|
||||
#endif
|
||||
|
||||
{ "battery_capacity", VAR_UINT16 | MASTER_VALUE, &masterConfig.batteryConfig.batteryCapacity, .config.minmax = { 0, 20000 } },
|
||||
|
|
|
@ -469,7 +469,8 @@ void handleSmartPortTelemetry(void)
|
|||
smartPortSendPackage(id, 0);
|
||||
smartPortHasRequest = 0;
|
||||
}
|
||||
else {
|
||||
|
||||
else if (telemetryConfig->pidValuesAsTelemetry){
|
||||
switch (t2Cnt) {
|
||||
case 0:
|
||||
tmp2 = currentProfile->pidProfile.P8[ROLL];
|
||||
|
|
|
@ -44,6 +44,7 @@ typedef struct telemetryConfig_s {
|
|||
uint8_t frsky_vfas_precision;
|
||||
uint8_t frsky_vfas_cell_voltage;
|
||||
uint8_t hottAlarmSoundInterval;
|
||||
uint8_t pidValuesAsTelemetry;
|
||||
} telemetryConfig_t;
|
||||
|
||||
void telemetryInit(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue