forked from Archive/PX4-Autopilot
Navigator: set position setpoint to current location instead of to NAN
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
parent
eaa4180920
commit
805de8a6d9
|
@ -846,8 +846,9 @@ MissionBlock::set_land_item(struct mission_item_s *item)
|
|||
/* set the land item */
|
||||
item->nav_cmd = NAV_CMD_LAND;
|
||||
|
||||
item->lat = (double)NAN; //descend at current position
|
||||
item->lon = (double)NAN; //descend at current position
|
||||
// set land item to current position
|
||||
item->lat = _navigator->get_global_position()->lat;
|
||||
item->lon = _navigator->get_global_position()->lon;
|
||||
item->yaw = _navigator->get_local_position()->heading;
|
||||
|
||||
item->altitude = 0;
|
||||
|
|
Loading…
Reference in New Issue