mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 08:15:30 +03:00
Move anti-windup iterm reset from rx loop to pid loop
Having the iterm resetting happening in the rx loop causes a sawtooth PID/motor effect while idling since the PID loop is running at a much higher rate and iterm is allowed to grow during this, and then only reset at a much lower rate in the rx loop. This can potentially lead to some oscillation and/or resonance while idling before takeoff as the sawtooth signal can make it through to the motor outputs.
This commit is contained in:
parent
628fdb8adc
commit
d867aeced3
5 changed files with 13 additions and 2 deletions
|
@ -1088,4 +1088,5 @@ extern "C" {
|
|||
bool gpsIsHealthy() { return false; }
|
||||
bool isAltitudeOffset(void) { return false; }
|
||||
float getCosTiltAngle(void) { return 0.0f; }
|
||||
void pidSetItermReset(bool) {}
|
||||
}
|
||||
|
|
|
@ -174,4 +174,5 @@ extern "C" {
|
|||
bool usbVcpIsConnected(void) { return false; }
|
||||
void pidSetAntiGravityState(bool newState) { UNUSED(newState); }
|
||||
void osdSuppressStats(bool) {}
|
||||
void pidSetItermReset(bool) {}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue