forked from Archive/PX4-Autopilot
navigator: mission WORK_ITEM_TYPE_MOVE_TO_LAND altitude isn't relative
This commit is contained in:
parent
fcbf8b6bcd
commit
350268ee68
|
@ -853,6 +853,7 @@ Mission::set_mission_items()
|
|||
|
||||
set_vtol_transition_item(&_mission_item, vtol_vehicle_status_s::VEHICLE_VTOL_STATE_MC);
|
||||
_mission_item.altitude = _navigator->get_global_position()->alt;
|
||||
_mission_item.altitude_is_relative = false;
|
||||
|
||||
new_work_item_type = WORK_ITEM_TYPE_MOVE_TO_LAND_AFTER_TRANSITION;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue