fix voltage and current sensor filter frequencies

This commit is contained in:
rav 2018-07-25 12:39:37 +02:00
parent 74d883bfa8
commit e43fc41f6a
2 changed files with 2 additions and 2 deletions

View File

@ -140,7 +140,7 @@ currentMeterADCState_t currentMeterADCState;
void currentMeterADCInit(void)
{
memset(&currentMeterADCState, 0, sizeof(currentMeterADCState_t));
biquadFilterInitLPF(&adciBatFilter, IBAT_LPF_FREQ, 50000); //50HZ Update
biquadFilterInitLPF(&adciBatFilter, IBAT_LPF_FREQ, 20000); //50HZ Update
}
void currentMeterADCRefresh(int32_t lastUpdateAt)

View File

@ -215,7 +215,7 @@ void voltageMeterESCInit(void)
{
#ifdef USE_ESC_SENSOR
memset(&voltageMeterESCState, 0, sizeof(voltageMeterESCState_t));
biquadFilterInitLPF(&voltageMeterESCState.filter, VBAT_LPF_FREQ, 50000); //50HZ Update
biquadFilterInitLPF(&voltageMeterESCState.filter, VBAT_LPF_FREQ, 20000); //50HZ Update
#endif
}