Copter: use check_failed function for ESTOP arming check
This commit is contained in:
parent
87c75332e7
commit
9c3a0b863f
@ -633,7 +633,7 @@ bool AP_Arming_Copter::arm_checks(AP_Arming::Method method)
|
||||
SRV_Channels::set_emergency_stop(false);
|
||||
// if we are using motor Estop switch, it must not be in Estop position
|
||||
} else if (rc().find_channel_for_option(RC_Channel::AUX_FUNC::MOTOR_ESTOP) && SRV_Channels::get_emergency_stop()){
|
||||
gcs().send_text(MAV_SEVERITY_CRITICAL,"Arm: Motor Emergency Stopped");
|
||||
check_failed(true, "Motor Emergency Stopped");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user