mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-08 10:50:19 +08:00
mc pos reset yaw when vtol transitions
This commit is contained in:
@@ -993,6 +993,11 @@ MulticopterPositionControl::task_main()
|
||||
reset_yaw_sp = true;
|
||||
}
|
||||
|
||||
// XXX Temporary: for vtol use we need to reset the yaw setpoint when we are doing a transition
|
||||
if (_vehicle_status.in_transition_mode) {
|
||||
reset_yaw_sp = true;
|
||||
}
|
||||
|
||||
//Update previous arming state
|
||||
was_armed = _control_mode.flag_armed;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user