From b7e71cbc4459af01dc0b57de47015a7f543441a0 Mon Sep 17 00:00:00 2001 From: Kenneth Mitchell Date: Thu, 26 Jul 2018 18:45:55 -0400 Subject: [PATCH] Fix AG Hpf test. --- src/main/flight/pid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/flight/pid.c b/src/main/flight/pid.c index defa2e74b8..f1c342ceb5 100644 --- a/src/main/flight/pid.c +++ b/src/main/flight/pid.c @@ -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); } }