Skip to content
Snippets Groups Projects
Commit 42eff31c authored by sander's avatar sander Committed by Roman
Browse files

Keep current altitude for vtol move to land after transition

parent 7f5a2b1b
No related branches found
No related tags found
No related merge requests found
......@@ -555,9 +555,6 @@ Mission::set_mission_items()
* what the altitude means on this waypoint type.
*/
float altitude = _navigator->get_global_position()->alt;
if (pos_sp_triplet->current.valid) {
altitude = pos_sp_triplet->current.alt;
}
_mission_item.altitude = altitude;
_mission_item.altitude_is_relative = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment