mirror of https://github.com/ArduPilot/ardupilot
AP_Arming: don't allow arming during IMU temp cal
This commit is contained in:
parent
e2e97c67ce
commit
68526262b7
|
@ -363,6 +363,12 @@ bool AP_Arming::ins_checks(bool report)
|
|||
return false;
|
||||
}
|
||||
|
||||
// no arming while doing temp cal
|
||||
if (ins.temperature_cal_running()) {
|
||||
check_failed(ARMING_CHECK_INS, report, "temperature cal running");
|
||||
return false;
|
||||
}
|
||||
|
||||
// check AHRS attitudes are consistent
|
||||
char failure_msg[50] = {};
|
||||
if (!AP::ahrs().attitudes_consistent(failure_msg, ARRAY_SIZE(failure_msg))) {
|
||||
|
|
Loading…
Reference in New Issue