mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 20:13:33 +08:00
navigator: don't execute land pattern if vtol in rotary wing mode
- if vtol and in rotary wing mode then don't execute the mission landing because it's designed to be flow as a fixed wing - if vtol and in rotary wing mode and mission land is available then fly directly to landing point and don't go home! Signed-off-by: RomanBapst <bapstroman@gmail.com>
This commit is contained in:
@@ -563,8 +563,8 @@ Navigator::run()
|
||||
|
||||
}
|
||||
|
||||
|
||||
if (!rtl_activated && _rtl.getClimbAndReturnDone() && get_mission_start_land_available()) {
|
||||
if (!rtl_activated && !_rtl.denyMissionLanding() && _rtl.getClimbAndReturnDone()
|
||||
&& get_mission_start_land_available()) {
|
||||
_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