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:
parent
b40db51448
commit
0138200c1c
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue