mc pos reset yaw when vtol transitions

This commit is contained in:
Simon Wilks 2015-08-12 16:12:56 +02:00 committed by tumbili
parent 04f55ce784
commit d786fd4a1b
1 changed files with 5 additions and 0 deletions

View File

@ -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;