Copter: motor test: remove safety and estop checks

This commit is contained in:
Peter Hall
2026-04-14 09:50:13 +09:00
committed by Randy Mackay
parent 87799fc112
commit 0fbce312bd
-12
View File
@@ -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;
}