AP_DAL: use MAX_EKF_CORES instead of INS_MAX_INSTANCES in ekf_low_time_remaining

This commit is contained in:
bugobliterator 2023-02-17 17:58:57 +11:00 committed by Andrew Tridgell
parent f3dc4216d2
commit 14ae431056

View File

@ -303,7 +303,7 @@ void AP_DAL::WriteLogMessage(enum LogMessages msg_type, void *msg, const void *o
*/ */
bool AP_DAL::ekf_low_time_remaining(EKFType etype, uint8_t core) bool AP_DAL::ekf_low_time_remaining(EKFType etype, uint8_t core)
{ {
static_assert(INS_MAX_INSTANCES <= 4, "max 4 IMUs"); static_assert(MAX_EKF_CORES <= 4, "max 4 EKF cores supported");
const uint8_t mask = (1U<<(core+(uint8_t(etype)*4))); const uint8_t mask = (1U<<(core+(uint8_t(etype)*4)));
#if !APM_BUILD_TYPE(APM_BUILD_AP_DAL_Standalone) && !APM_BUILD_TYPE(APM_BUILD_Replay) #if !APM_BUILD_TYPE(APM_BUILD_AP_DAL_Standalone) && !APM_BUILD_TYPE(APM_BUILD_Replay)
/* /*