AP_Arming: check for duplicate auxswitch options

This commit is contained in:
mmk0102 2020-05-27 22:04:00 +03:00 committed by Andrew Tridgell
parent c0d7739929
commit 22d052b711

View File

@ -552,6 +552,11 @@ bool AP_Arming::rc_arm_checks(AP_Arming::Method method)
}
bool check_passed = true;
// ensure all rc channels have different functions
if (rc().duplicate_options_exist()) {
check_failed(ARMING_CHECK_PARAMETERS, true, "Duplicate Aux Switch Options");
check_passed = false;
}
const RCMapper * rcmap = AP::rcmap();
if (rcmap != nullptr) {
if (!rc().arming_skip_checks_rpy()) {