Browse Source

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.
v1.13.0-BW
Matthias Grob 3 years ago
parent
commit
fe26ee244d
  1. 3
      src/modules/commander/Arming/PreFlightCheck/checks/modeCheck.cpp

3
src/modules/commander/Arming/PreFlightCheck/checks/modeCheck.cpp

@ -53,6 +53,9 @@ bool PreFlightCheck::modeCheck(orb_advert_t *mavlink_log_pub, const bool report_ @@ -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:

Loading…
Cancel
Save