1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-15 12:25:20 +03:00

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

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