Dynamic integral resets for straight and circle mode, announcing turn radius now

This commit is contained in:
Lorenz Meier
2013-10-08 09:17:58 +02:00
parent d59cdf6fcc
commit a3bdf536e5
3 changed files with 36 additions and 1 deletions
@@ -593,6 +593,10 @@ FixedwingAttitudeControl::task_main()
pitch_sp = _att_sp.pitch_body;
throttle_sp = _att_sp.thrust;
/* reset integrals where needed */
if (_att_sp.roll_reset_integral)
_roll_ctrl.reset_integrator();
} else {
/*
* Scale down roll and pitch as the setpoints are radians