mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-26 01:35:35 +03:00
Merge pull request #3104 from iNavFlight/dzikuvx-autotrim-reset-iterm
Reset Iterm after autotrim is done
This commit is contained in:
commit
cb16ee619a
1 changed files with 1 additions and 0 deletions
|
@ -425,6 +425,7 @@ void processServoAutotrim(void)
|
|||
servoParamsMutable(servoIndex)->middle = servoMiddleAccum[servoIndex] / servoMiddleAccumCount;
|
||||
}
|
||||
trimState = AUTOTRIM_SAVE_PENDING;
|
||||
pidResetErrorAccumulators(); //Reset Iterm since new midpoints override previously acumulated errors
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue