Skip to content

Commit

Permalink
AP_NavEKF3: move definition of MAX_EKF_CORES
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
peterbarker authored and tridge committed Dec 30, 2024
1 parent cef48fc commit a794688
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions libraries/AP_DAL/AP_DAL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <AP_WheelEncoder/AP_WheelEncoder.h>
#include <AP_Vehicle/AP_Vehicle_Type.h>
#include <AP_NavEKF3/AP_NavEKF3_feature.h>
#include <AP_NavEKF/AP_Nav_Common.h>

#if APM_BUILD_TYPE(APM_BUILD_Replay)
#include <AP_NavEKF2/AP_NavEKF2.h>
Expand Down
2 changes: 2 additions & 0 deletions libraries/AP_NavEKF/AP_Nav_Common.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
#include <stdint.h>
#include <AP_Math/AP_Math.h>

#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 {
Expand Down
1 change: 0 additions & 1 deletion libraries/AP_NavEKF3/AP_NavEKF3.h
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,6 @@ class NavEKF3 {
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

Expand Down

0 comments on commit a794688

Please sign in to comment.