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

Substitute pt1 filter of gyroADC for 7 Tap FIR filter

This commit is contained in:
Stephen Willey 2015-09-18 15:23:09 -07:00
parent 38dd09f9b5
commit 266ed02a81
7 changed files with 33 additions and 9 deletions

View file

@ -812,7 +812,9 @@ void loop(void)
dT = (float)cycleTime * 0.000001f;
if (currentProfile->pidProfile.gyro_cut_hz) {
if (currentProfile->pidProfile.gyro_fir_filter_enable) {
filterApply7TapFIR(gyroADC);
else if (currentProfile->pidProfile.gyro_cut_hz) {
filterGyro();
}