rtl: set proper acceptance radius for move_to_land item

Signed-off-by: RomanBapst <bapstroman@gmail.com>
This commit is contained in:
RomanBapst 2020-04-28 16:35:23 +03:00 committed by Lorenz Meier
parent 6ff95ae645
commit dad5ce1e41
1 changed files with 2 additions and 0 deletions

View File

@ -348,6 +348,8 @@ void RTL::set_rtl_item()
_mission_item.altitude = loiter_altitude;
_mission_item.altitude_is_relative = false;
_mission_item.yaw = get_bearing_to_next_waypoint(gpos.lat, gpos.lon, _mission_item.lat, _mission_item.lon);
_mission_item.acceptance_radius = _navigator->get_acceptance_radius();
_mission_item.origin = ORIGIN_ONBOARD;
break;
}