mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-06 13:08:52 +08:00
Navigator: set position setpoint to current location instead of to NAN
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user