mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 09:13:34 +08:00
enable takeoff in gps denied areas and minor requested changes
This commit is contained in:
committed by
Lorenz Meier
parent
64092f087f
commit
0263ab8cd2
@@ -711,13 +711,7 @@ MissionBlock::set_land_item(struct mission_item_s *item, bool at_current_locatio
|
||||
if (at_current_location) {
|
||||
item->lat = _navigator->get_global_position()->lat;
|
||||
item->lon = _navigator->get_global_position()->lon;
|
||||
|
||||
if (_navigator->home_position_valid()) {
|
||||
item->yaw = _navigator->get_global_position()->yaw;
|
||||
|
||||
} else {
|
||||
item->yaw = _navigator->get_local_position()->yaw;
|
||||
}
|
||||
item->yaw = _navigator->get_local_position()->yaw;
|
||||
|
||||
/* use home position */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user