use current local position for land and not GPS -> e.g. flow

This commit is contained in:
ChristophTobler
2017-05-03 16:52:37 +02:00
committed by Dennis Mannhart
parent 5bfe6d7fec
commit dce28454c8
2 changed files with 25 additions and 10 deletions
+2 -2
View File
@@ -699,8 +699,8 @@ MissionBlock::set_land_item(struct mission_item_s *item, bool at_current_locatio
/* use current position */
if (at_current_location) {
item->lat = _navigator->get_global_position()->lat;
item->lon = _navigator->get_global_position()->lon;
item->lat = NAN; //descend at current position
item->lon = NAN; //descend at current position
item->yaw = _navigator->get_local_position()->yaw;
} else {