mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 16:33:33 +08:00
allow manual yaw in all manual modes and also use it as threshold to snap into heading lock
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user