mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-02 14:08:45 -04:00
AP_Arming: check for duplicate auxswitch options
This commit is contained in:
parent
c0d7739929
commit
22d052b711
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user