mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 02:23:33 +08:00
RTL: replace deny_mission_landing logic by getDestinationTypeMissionLanding()
The rtl instance decides on destination of RTL, and Navigator then switches to mission mode if required. Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
committed by
Roman Bapst
parent
ab08bbdb58
commit
f4f9b8ebf2
@@ -589,8 +589,8 @@ Navigator::run()
|
||||
|
||||
}
|
||||
|
||||
if (!rtl_activated && !_rtl.denyMissionLanding() && _rtl.getClimbAndReturnDone()
|
||||
&& get_mission_start_land_available()) {
|
||||
if (!rtl_activated && _rtl.getClimbAndReturnDone()
|
||||
&& _rtl.getDestinationTypeMissionLanding()) {
|
||||
_mission.set_execution_mode(mission_result_s::MISSION_EXECUTION_MODE_FAST_FORWARD);
|
||||
|
||||
if (!getMissionLandingInProgress() && _vstatus.arming_state == vehicle_status_s::ARMING_STATE_ARMED
|
||||
|
||||
Reference in New Issue
Block a user