diff --git a/src/main/interface/settings.c b/src/main/interface/settings.c index 38cc2d3c23..438a2e1ab5 100644 --- a/src/main/interface/settings.c +++ b/src/main/interface/settings.c @@ -622,7 +622,6 @@ const clivalue_t valueTable[] = { { "baro_tab_size", VAR_UINT8 | MASTER_VALUE, .config.minmax = { 0, BARO_SAMPLE_COUNT_MAX }, PG_BAROMETER_CONFIG, offsetof(barometerConfig_t, baro_sample_count) }, { "baro_noise_lpf", VAR_UINT16 | MASTER_VALUE, .config.minmax = { 0, 1000 }, PG_BAROMETER_CONFIG, offsetof(barometerConfig_t, baro_noise_lpf) }, { "baro_cf_vel", VAR_UINT16 | MASTER_VALUE, .config.minmax = { 0, 1000 }, PG_BAROMETER_CONFIG, offsetof(barometerConfig_t, baro_cf_vel) }, - { "baro_cf_alt", VAR_UINT16 | MASTER_VALUE, .config.minmax = { 0, 1000 }, PG_BAROMETER_CONFIG, offsetof(barometerConfig_t, baro_cf_alt) }, #endif // PG_RX_CONFIG diff --git a/src/main/sensors/barometer.c b/src/main/sensors/barometer.c index 95fdc290b7..1677b7b631 100644 --- a/src/main/sensors/barometer.c +++ b/src/main/sensors/barometer.c @@ -52,14 +52,13 @@ baro_t baro; // barometer access functions -PG_REGISTER_WITH_RESET_FN(barometerConfig_t, barometerConfig, PG_BAROMETER_CONFIG, 0); +PG_REGISTER_WITH_RESET_FN(barometerConfig_t, barometerConfig, PG_BAROMETER_CONFIG, 1); void pgResetFn_barometerConfig(barometerConfig_t *barometerConfig) { barometerConfig->baro_sample_count = 21; barometerConfig->baro_noise_lpf = 600; barometerConfig->baro_cf_vel = 985; - barometerConfig->baro_cf_alt = 965; barometerConfig->baro_hardware = BARO_DEFAULT; // For backward compatibility; ceate a valid default value for bus parameters diff --git a/src/main/sensors/barometer.h b/src/main/sensors/barometer.h index 0238808446..21755d22eb 100644 --- a/src/main/sensors/barometer.h +++ b/src/main/sensors/barometer.h @@ -45,7 +45,6 @@ typedef struct barometerConfig_s { uint8_t baro_sample_count; // size of baro filter array uint16_t baro_noise_lpf; // additional LPF to reduce baro noise uint16_t baro_cf_vel; // apply Complimentary Filter to keep the calculated velocity based on baro velocity (i.e. near real velocity) - uint16_t baro_cf_alt; // apply CF to use ACC for height estimation } barometerConfig_t; PG_DECLARE(barometerConfig_t, barometerConfig);