mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Plane: do not run any prearm checks if we are armed or arming is not required
Co-authored-by: TunaLobster <unknown>
This commit is contained in:
parent
eac9ec4392
commit
b5d75b287d
@ -21,6 +21,11 @@ const AP_Param::GroupInfo AP_Arming_Plane::var_info[] = {
|
||||
*/
|
||||
bool AP_Arming_Plane::pre_arm_checks(bool display_failure)
|
||||
{
|
||||
if (armed || require == (uint8_t)Required::NO) {
|
||||
// if we are already armed or don't need any arming checks
|
||||
// then skip the checks
|
||||
return true;
|
||||
}
|
||||
//are arming checks disabled?
|
||||
if (checks_to_perform == 0) {
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user