mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Rover: arming revert to single &
Using a single & here means that all checks are run even if the first fails. && would run only the first check and return if it fails.
This commit is contained in:
parent
89217a3804
commit
653e5524f6
@ -88,11 +88,11 @@ bool AP_Arming_Rover::pre_arm_checks(bool report)
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (AP_Arming::pre_arm_checks(report)
|
return (AP_Arming::pre_arm_checks(report)
|
||||||
&& rover.g2.motors.pre_arm_check(report)
|
& rover.g2.motors.pre_arm_check(report)
|
||||||
&& fence_checks(report)
|
& fence_checks(report)
|
||||||
&& oa_check(report)
|
& oa_check(report)
|
||||||
&& parameter_checks(report)
|
& parameter_checks(report)
|
||||||
&& mode_checks(report));
|
& mode_checks(report));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool AP_Arming_Rover::arm_checks(AP_Arming::Method method)
|
bool AP_Arming_Rover::arm_checks(AP_Arming::Method method)
|
||||||
|
Loading…
Reference in New Issue
Block a user