1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-20 06:45:16 +03:00

Reset ITerm on motor reversal

This commit is contained in:
Martin Budden 2017-11-30 14:54:37 +00:00
parent ce345a8446
commit 9060ecb302
5 changed files with 20 additions and 4 deletions

View file

@ -136,7 +136,7 @@ static void pidSetTargetLooptime(uint32_t pidLooptime)
dT = (float)targetPidLooptime * 0.000001f;
}
void pidResetErrorGyroState(void)
void pidResetITerm(void)
{
for (int axis = 0; axis < 3; axis++) {
axisPID_I[axis] = 0.0f;