modeCheck: allow arming in land mode for MAVSDK compatibility

ideally we can remove it again when the workflow is changed to
first changing mode then arming.
This commit is contained in:
Matthias Grob
2022-04-07 13:19:11 +02:00
parent 889a5aa0b1
commit fe26ee244d
@@ -53,6 +53,9 @@ 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: