mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 01:35:41 +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;
|
acErrorRate = itermErrorRate - acCorrection;
|
||||||
} else {
|
} else {
|
||||||
itermErrorRate = errorRate;
|
itermErrorRate = acErrorRate = errorRate;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (acGain > 0) {
|
if (acGain > 0) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue