1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 17:25:20 +03:00

Increase voltage/current cutoff frequencies

Increase IBAT_LPF_FREQ  and VBAT_LPF_FREQ
This commit is contained in:
Hans Christian Olaussen 2019-01-13 17:41:48 +01:00
parent d3aa5855ce
commit 6770bbafca
2 changed files with 2 additions and 2 deletions

View file

@ -86,7 +86,7 @@ void currentMeterReset(currentMeter_t *meter)
// ADC/Virtual shared // ADC/Virtual shared
// //
#define IBAT_LPF_FREQ 0.4f #define IBAT_LPF_FREQ 2.0f
static biquadFilter_t adciBatFilter; static biquadFilter_t adciBatFilter;
#ifndef CURRENT_METER_SCALE_DEFAULT #ifndef CURRENT_METER_SCALE_DEFAULT

View file

@ -67,7 +67,7 @@ typedef enum {
#define VBAT_MULTIPLIER_MIN 1 #define VBAT_MULTIPLIER_MIN 1
#define VBAT_MULTIPLIER_MAX 255 #define VBAT_MULTIPLIER_MAX 255
#define VBAT_LPF_FREQ 0.1f #define VBAT_LPF_FREQ 0.5f
#ifndef MAX_VOLTAGE_SENSOR_ADC #ifndef MAX_VOLTAGE_SENSOR_ADC
#define MAX_VOLTAGE_SENSOR_ADC 1 // VBAT - some boards have external, 12V, 9V and 5V meters. #define MAX_VOLTAGE_SENSOR_ADC 1 // VBAT - some boards have external, 12V, 9V and 5V meters.