mc_pos_control: yaw in AUTO fixed

This commit is contained in:
Anton Babushkin
2014-01-01 13:40:32 +04:00
parent 0f6dcf9e5e
commit 40d03666fd
@@ -619,6 +619,8 @@ MulticopterPositionControl::task_main()
_pos_sp(2) -= 0.5f * _params.vel_max(2) / _params.pos_p(2);
}
_att_sp.yaw_body = _mission_items.current.yaw;
/* in case of interrupted mission don't go to waypoint but stay at current position */
reset_sp_xy = true;
reset_sp_z = true;