1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 21:05:35 +03:00

Fix AG Hpf test.

This commit is contained in:
Kenneth Mitchell 2018-07-26 18:45:55 -04:00
parent 158d0224b3
commit b7e71cbc44

View file

@ -418,7 +418,7 @@ static FAST_RAM_ZERO_INIT float acroTrainerGain;
void pidUpdateAntiGravityThrottleFilter(float throttle)
{
if (antiGravityMode) {
if (antiGravityMode == ANTI_GRAVITY_SMOOTH) {
antiGravityThrottleHpf = throttle - pt1FilterApply(&antiGravityThrottleLpf, throttle);
}
}