allow manual yaw in all manual modes and also use it as threshold to snap into heading lock

This commit is contained in:
Andreas Antener
2016-07-25 08:56:19 +02:00
parent 9f7f6e4d3d
commit 0a997577f5
2 changed files with 5 additions and 3 deletions
@@ -980,7 +980,8 @@ FixedwingAttitudeControl::task_main()
yaw_sp = _att_sp.yaw_body;
throttle_sp = _att_sp.thrust;
if (!_vcontrol_mode.flag_control_velocity_enabled) {
/* allow manual yaw in manual modes */
if (_vcontrol_mode.flag_control_manual_enabled) {
yaw_manual = _manual.r;
}