mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-18 23:20:35 +08:00
mc_pos_control: yaw in AUTO fixed
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user