Copter: move check for duplicate auxswitch options up

This commit is contained in:
mmk0102 2020-05-27 21:58:59 +03:00 committed by Andrew Tridgell
parent 911570e9f3
commit c0d7739929

View File

@ -149,12 +149,6 @@ bool AP_Arming_Copter::parameter_checks(bool display_failure)
// check various parameter values
if ((checks_to_perform == ARMING_CHECK_ALL) || (checks_to_perform & ARMING_CHECK_PARAMETERS)) {
// ensure all rc channels have different functions
if (rc().duplicate_options_exist()) {
check_failed(ARMING_CHECK_PARAMETERS, display_failure, "Duplicate Aux Switch Options");
return false;
}
// failsafe parameter checks
if (copter.g.failsafe_throttle) {
// check throttle min is above throttle failsafe trigger and that the trigger is above ppm encoder's loss-of-signal value of 900