fw pos ctrl: only manipulate heading hold yaw in manual position control mode

This commit is contained in:
Thomas Stastny
2022-05-05 21:22:42 +02:00
parent 6b9931ad7d
commit 1af0c21ea9
@@ -888,8 +888,6 @@ FixedwingPositionControl::control_auto(const hrt_abstime &now, const float contr
{
update_in_air_states(now);
_hdg_hold_yaw = _yaw;
_att_sp.roll_reset_integral = false;
_att_sp.pitch_reset_integral = false;
_att_sp.yaw_reset_integral = false;
@@ -1415,8 +1413,6 @@ FixedwingPositionControl::control_auto_takeoff(const hrt_abstime &now, const flo
{
update_in_air_states(now);
_hdg_hold_yaw = _yaw;
_att_sp.roll_reset_integral = false;
_att_sp.pitch_reset_integral = false;
_att_sp.yaw_reset_integral = false;
@@ -1663,8 +1659,6 @@ FixedwingPositionControl::control_auto_landing(const hrt_abstime &now, const flo
{
update_in_air_states(now);
_hdg_hold_yaw = _yaw;
_att_sp.roll_reset_integral = false;
_att_sp.pitch_reset_integral = false;
_att_sp.yaw_reset_integral = false;