mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_Arming: move check for ARMING_CHECK_NONE back into relevant vehicles
Plane and Rover allow all prearm and arm checks to be bypassed with ARMING_CHECK_NONE. Not all vehicles allow this, so move this bypass back into Plane and Rover.
This commit is contained in:
parent
92ce75517c
commit
84b16ea3dd
@ -797,14 +797,7 @@ bool AP_Arming::arm(AP_Arming::Method method, const bool do_arming_checks)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
//are arming checks disabled?
|
if (!do_arming_checks || (pre_arm_checks(true) && arm_checks(method))) {
|
||||||
if (!do_arming_checks || checks_to_perform == ARMING_CHECK_NONE) {
|
|
||||||
armed = true;
|
|
||||||
gcs().send_text(MAV_SEVERITY_INFO, "Throttle armed");
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (pre_arm_checks(true) && arm_checks(method)) {
|
|
||||||
armed = true;
|
armed = true;
|
||||||
|
|
||||||
gcs().send_text(MAV_SEVERITY_INFO, "Throttle armed");
|
gcs().send_text(MAV_SEVERITY_INFO, "Throttle armed");
|
||||||
|
Loading…
Reference in New Issue
Block a user