FlightModeManager: fix integral reset on ground

This information could also be used for yaw and integral
resets of the lower level controllers.
This commit is contained in:
Matthias Grob
2020-10-24 17:27:07 +02:00
committed by Daniel Agar
parent 7de288877a
commit fafbb687d8
3 changed files with 6 additions and 1 deletions
@@ -454,7 +454,7 @@ void FlightModeManager::generateTrajectorySetpoint(const float dt,
// set yaw-sp to current yaw
setpoint.yawspeed = 0.f;
// prevent any integrator windup
// _control.resetIntegral(); TODO
constraints.reset_integral = true;
}
_trajectory_setpoint_pub.publish(setpoint);