1
0
Fork 0
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:
Konstantin Sharlaimov 2018-04-24 08:51:34 +10:00 committed by GitHub
commit cb16ee619a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {