Browse Source

Copter: remove an unnecessary condition

zr-v5.1
Tatsuya Yamaguchi 5 years ago committed by Peter Barker
parent
commit
875fa36018
  1. 2
      ArduCopter/AP_Arming.cpp

2
ArduCopter/AP_Arming.cpp

@ -632,7 +632,7 @@ bool AP_Arming_Copter::arm_checks(AP_Arming::Method method) @@ -632,7 +632,7 @@ bool AP_Arming_Copter::arm_checks(AP_Arming::Method method)
if (!rc().find_channel_for_option(RC_Channel::AUX_FUNC::MOTOR_ESTOP)){
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()){
} else if (SRV_Channels::get_emergency_stop()){
check_failed(true, "Motor Emergency Stopped");
return false;
}

Loading…
Cancel
Save