Always perform yaw SP generation, not only in multicopter mode

This commit is contained in:
Lorenz Meier
2016-01-24 16:30:21 +01:00
parent b2237ce525
commit 737fe1fc7f
+2 -3
View File
@@ -193,9 +193,8 @@ Mission::on_active()
}
}
/* see if we need to update the current yaw heading for rotary wing types */
if (_navigator->get_vstatus()->is_rotary_wing
&& _param_yawmode.get() != MISSION_YAWMODE_NONE
/* see if we need to update the current yaw heading */
if (_param_yawmode.get() != MISSION_YAWMODE_NONE
&& _param_yawmode.get() < MISSION_YAWMODE_MAX
&& _mission_type != MISSION_TYPE_NONE) {
heading_sp_update();