mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 09:58:28 -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
dd156d8da6
commit
5b7ec1fab4
@ -21,6 +21,11 @@ const AP_Param::GroupInfo AP_Arming_Plane::var_info[] = {
|
|||||||
*/
|
*/
|
||||||
bool AP_Arming_Plane::pre_arm_checks(bool display_failure)
|
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?
|
//are arming checks disabled?
|
||||||
if (checks_to_perform == 0) {
|
if (checks_to_perform == 0) {
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user