mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 02:36:37 +08:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user