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:
parent
38dd09f9b5
commit
266ed02a81
7 changed files with 33 additions and 9 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue