File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,13 @@ bool AP_Arming_Sub::has_disarm_function() const {
38
38
}
39
39
}
40
40
}
41
+ // check if an AUX function that disarms or estops is setup
42
+ if (rc ().find_channel_for_option (RC_Channel::AUX_FUNC::MOTOR_ESTOP) ||
43
+ rc ().find_channel_for_option (RC_Channel::AUX_FUNC::DISARM) ||
44
+ rc ().find_channel_for_option (RC_Channel::AUX_FUNC::ARMDISARM) ||
45
+ rc ().find_channel_for_option (RC_Channel::AUX_FUNC::ARM_EMERGENCY_STOP)) {
46
+ return true ;
47
+ }
41
48
return false ;
42
49
}
43
50
@@ -48,7 +55,7 @@ bool AP_Arming_Sub::pre_arm_checks(bool display_failure)
48
55
}
49
56
// don't allow arming unless there is a disarm button configured
50
57
if (!has_disarm_function ()) {
51
- check_failed (display_failure, " Must assign a disarm or arm_toggle button" );
58
+ check_failed (display_failure, " Must assign a disarm or arm_toggle button or disarm aux function " );
52
59
return false ;
53
60
}
54
61
You can’t perform that action at this time.
0 commit comments