From a794688f3b45ac2d7644265d71244b0cde31be49 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 30 Dec 2024 00:59:15 +1100 Subject: [PATCH] AP_NavEKF3: move definition of MAX_EKF_CORES if you're not including the AP_NavEKF3 header then you don't get this definition and then you won't be able to compile the DAL. --- libraries/AP_DAL/AP_DAL.cpp | 1 + libraries/AP_NavEKF/AP_Nav_Common.h | 2 ++ libraries/AP_NavEKF3/AP_NavEKF3.h | 1 - 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/AP_DAL/AP_DAL.cpp b/libraries/AP_DAL/AP_DAL.cpp index 4d6a1f9bd6..2a8cba1183 100644 --- a/libraries/AP_DAL/AP_DAL.cpp +++ b/libraries/AP_DAL/AP_DAL.cpp @@ -8,6 +8,7 @@ #include #include #include +#include #if APM_BUILD_TYPE(APM_BUILD_Replay) #include diff --git a/libraries/AP_NavEKF/AP_Nav_Common.h b/libraries/AP_NavEKF/AP_Nav_Common.h index a24f96e86e..5959fa8d81 100644 --- a/libraries/AP_NavEKF/AP_Nav_Common.h +++ b/libraries/AP_NavEKF/AP_Nav_Common.h @@ -19,6 +19,8 @@ #include #include +#define MAX_EKF_CORES 3 // maximum allowed EKF Cores to be instantiated + // enumeration corresponding to buts within nav_filter_status union. // Only used for documentation purposes. enum class NavFilterStatusBit { diff --git a/libraries/AP_NavEKF3/AP_NavEKF3.h b/libraries/AP_NavEKF3/AP_NavEKF3.h index 6bfba2ee17..73d7678b9d 100644 --- a/libraries/AP_NavEKF3/AP_NavEKF3.h +++ b/libraries/AP_NavEKF3/AP_NavEKF3.h @@ -530,7 +530,6 @@ private: float core_delta; // the amount of D position change between cores when a change happened } pos_down_reset_data; -#define MAX_EKF_CORES 3 // maximum allowed EKF Cores to be instantiated #define CORE_ERR_LIM 1 // -LIM to LIM relative error range for a core #define BETTER_THRESH 0.5 // a lane should have this much relative error difference to be considered for overriding a healthy primary core