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