navigator: mission WORK_ITEM_TYPE_MOVE_TO_LAND altitude isn't relative

This commit is contained in:
Daniel Agar 2020-01-21 16:22:27 -05:00 committed by Lorenz Meier
parent fcbf8b6bcd
commit 350268ee68
1 changed files with 1 additions and 0 deletions

View File

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