PreFlightCheck: disallow arming in land mode

after the automatic switch to Hold mode was introduced.
This commit is contained in:
Matthias Grob
2022-06-01 12:08:32 +12:00
committed by Julian Oes
parent 83c15fca9f
commit 96b0304049
@@ -53,9 +53,6 @@ bool PreFlightCheck::modeCheck(orb_advert_t *mavlink_log_pub, const bool report_
case vehicle_status_s::NAVIGATION_STATE_STAB:
case vehicle_status_s::NAVIGATION_STATE_AUTO_TAKEOFF:
case vehicle_status_s::NAVIGATION_STATE_AUTO_VTOL_TAKEOFF:
// allow arming in land mode to prevent MAVSDK examples from failing on master until the workflow is changed
case vehicle_status_s::NAVIGATION_STATE_AUTO_LAND:
break;
default: