Overshoot logic updates, disable for GPS Rescue, constrain max setpoint
commitad067ee09a40eaab4bab6e8610b40643cbb04a3c
authorBruce Luckcuck <github@etracer.net>
Mon, 28 May 2018 01:09:38 +0000 (27 21:09 -0400)
committerBruce Luckcuck <github@etracer.net>
Wed, 30 May 2018 01:08:19 +0000 (29 21:08 -0400)
tree78b858a1660d9fecf9638f8023f7fb159cc77eed
parent23840888557e62259e691ceeba0265e3dca28fe6
Overshoot logic updates, disable for GPS Rescue, constrain max setpoint
Updates for finalize the flight performance.

Disable if GPS Rescue is active

Constrain the max setpoint calculated by the angle correction logic. To catch border cases where the user activates the feature while inverted and has a high gain which could result in excessively high setpoint rates.

Make sure internal states are reset when feature is activated via mode switch.
src/main/flight/pid.c