mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-06 19:00:27 +08:00
Copter: motor test: remove safety and estop checks
This commit is contained in:
@@ -124,18 +124,6 @@ bool Copter::mavlink_motor_control_check(const GCS_MAVLINK &gcs_chan, bool check
|
||||
return false;
|
||||
}
|
||||
|
||||
// check if safety switch has been pushed
|
||||
if (hal.util->safety_switch_state() == AP_HAL::Util::SAFETY_DISARMED) {
|
||||
gcs_chan.send_text(MAV_SEVERITY_CRITICAL,"%s: Safety switch", mode);
|
||||
return false;
|
||||
}
|
||||
|
||||
// check E-Stop is not active
|
||||
if (SRV_Channels::get_emergency_stop()) {
|
||||
gcs_chan.send_text(MAV_SEVERITY_CRITICAL,"%s: Motor Emergency Stopped", mode);
|
||||
return false;
|
||||
}
|
||||
|
||||
// if we got this far the check was successful and the motor test can continue
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user