mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 16:48:52 +08:00
PreFlightCheck: disallow arming in land mode
after the automatic switch to Hold mode was introduced.
This commit is contained in:
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:
|
||||
|
||||
Reference in New Issue
Block a user