AP_Arming: INS: add batchsampler init check

This commit is contained in:
Iampete1 2023-03-02 22:19:32 +00:00 committed by Andrew Tridgell
parent 027ffefa41
commit 89e5a7a300

View File

@ -464,6 +464,15 @@ bool AP_Arming::ins_checks(bool report)
check_failed(ARMING_CHECK_INS, report, "temperature cal running");
return false;
}
#if AP_INERTIALSENSOR_BATCHSAMPLER_ENABLED
// If Batch sampling enabled it must be initialized
if (ins.batchsampler.enabled() && !ins.batchsampler.is_initialised()) {
check_failed(ARMING_CHECK_INS, report, "Batch sampling requires reboot");
return false;
}
#endif
}
#if HAL_GYROFFT_ENABLED