mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 15:43:34 +08:00
Dynamic integral resets for straight and circle mode, announcing turn radius now
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user