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

Fix dynamic filter for gyro loop < 4K

For gyro loops from 2K to < 4K scale the FFT_SAMPLING_RATE_HZ to ensure we get 3 samples.

Also constrain the `centerFreq` result from the lowpass to ensure it doesn't overshoot beyond the min/max notch center cutoff.
This commit is contained in:
Bruce Luckcuck 2018-07-29 09:48:32 -04:00
parent 45002a803e
commit f252b09fdb
3 changed files with 44 additions and 22 deletions

View file

@ -527,10 +527,6 @@ bool gyroInit(void)
}
#endif
#ifdef USE_GYRO_DATA_ANALYSE
gyroDataAnalyseInit();
#endif
switch (debugMode) {
case DEBUG_FFT:
case DEBUG_FFT_FREQ: