mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-06 12:58:53 +08:00
disable yaw on takeoff wp before heading update
This commit is contained in:
committed by
Lorenz Meier
parent
6d32b8f41d
commit
ff43c1ab6a
@@ -443,6 +443,8 @@ Mission::set_mission_items()
|
||||
if (_work_item_type == WORK_ITEM_TYPE_TAKEOFF) {
|
||||
new_work_item_type = WORK_ITEM_TYPE_DEFAULT;
|
||||
_mission_item.nav_cmd = NAV_CMD_WAYPOINT;
|
||||
/* ignore yaw here, otherwise it might yaw before heading_sp_update takes over */
|
||||
_mission_item.yaw = NAN;
|
||||
}
|
||||
|
||||
/* move to landing waypoint before descent if necessary */
|
||||
|
||||
Reference in New Issue
Block a user