Copter: re-enable CPU failsafe if arming fails
This commit is contained in:
parent
dc3509ef55
commit
683f3a55c4
@ -177,6 +177,7 @@ static bool init_arm_motors()
|
|||||||
if (((g.arming_check == ARMING_CHECK_ALL) || (g.arming_check & ARMING_CHECK_INS)) && !ins.gyro_calibrated_ok_all()) {
|
if (((g.arming_check == ARMING_CHECK_ALL) || (g.arming_check & ARMING_CHECK_INS)) && !ins.gyro_calibrated_ok_all()) {
|
||||||
gcs_send_text_P(SEVERITY_HIGH,PSTR("Arm: Gyro cal failed"));
|
gcs_send_text_P(SEVERITY_HIGH,PSTR("Arm: Gyro cal failed"));
|
||||||
AP_Notify::flags.armed = false;
|
AP_Notify::flags.armed = false;
|
||||||
|
failsafe_enable();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
did_ground_start = true;
|
did_ground_start = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user