Merge pull request #6461 from kmitchel/Fix_AG_Error

Fix AG Hpf  test.
This commit is contained in:
Michael Keller 2018-07-27 20:24:25 +12:00 committed by GitHub
commit 959e6e708b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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);
}
}