1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

initialize acErrorRate if iterm_relax is off

This commit is contained in:
Thorsten Laux 2018-05-26 13:29:37 +02:00
parent b40db51448
commit 0138200c1c

View file

@ -798,7 +798,7 @@ void FAST_CODE pidController(const pidProfile_t *pidProfile, const rollAndPitchT
}
acErrorRate = itermErrorRate - acCorrection;
} else {
itermErrorRate = errorRate;
itermErrorRate = acErrorRate = errorRate;
}
if (acGain > 0) {