From 8b8307c132a1de18974fe881afb58aa577a76fb1 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 30 Aug 2024 18:21:22 +1000 Subject: [PATCH] AP_NavEKF2: correct includes --- libraries/AP_NavEKF2/AP_NavEKF2.cpp | 2 ++ libraries/AP_NavEKF2/AP_NavEKF2_Measurements.cpp | 7 +++---- libraries/AP_NavEKF2/AP_NavEKF2_VehicleStatus.cpp | 2 ++ libraries/AP_NavEKF2/LogStructure.h | 2 +- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/libraries/AP_NavEKF2/AP_NavEKF2.cpp b/libraries/AP_NavEKF2/AP_NavEKF2.cpp index 01ecc7df9b..dfd2aa7b6d 100644 --- a/libraries/AP_NavEKF2/AP_NavEKF2.cpp +++ b/libraries/AP_NavEKF2/AP_NavEKF2.cpp @@ -1,3 +1,5 @@ +#include "AP_NavEKF2.h" + #include "AP_NavEKF2_core.h" #include diff --git a/libraries/AP_NavEKF2/AP_NavEKF2_Measurements.cpp b/libraries/AP_NavEKF2/AP_NavEKF2_Measurements.cpp index 009a59f358..cdd25bc133 100644 --- a/libraries/AP_NavEKF2/AP_NavEKF2_Measurements.cpp +++ b/libraries/AP_NavEKF2/AP_NavEKF2_Measurements.cpp @@ -1,14 +1,13 @@ -#include - #include "AP_NavEKF2_core.h" + +#include "AP_NavEKF2.h" + #include #include #include #if AP_RANGEFINDER_ENABLED -extern const AP_HAL::HAL& hal; - /******************************************************** * OPT FLOW AND RANGE FINDER * diff --git a/libraries/AP_NavEKF2/AP_NavEKF2_VehicleStatus.cpp b/libraries/AP_NavEKF2/AP_NavEKF2_VehicleStatus.cpp index 8653ad4a7e..859930bdd0 100644 --- a/libraries/AP_NavEKF2/AP_NavEKF2_VehicleStatus.cpp +++ b/libraries/AP_NavEKF2/AP_NavEKF2_VehicleStatus.cpp @@ -1,5 +1,7 @@ #include "AP_NavEKF2_core.h" +#include "AP_NavEKF2.h" + #include /* Monitor GPS data to see if quality is good enough to initialise the EKF diff --git a/libraries/AP_NavEKF2/LogStructure.h b/libraries/AP_NavEKF2/LogStructure.h index 753d9ceb0f..a7f1a88625 100644 --- a/libraries/AP_NavEKF2/LogStructure.h +++ b/libraries/AP_NavEKF2/LogStructure.h @@ -1,7 +1,7 @@ #pragma once #include -#include +#include #define LOG_IDS_FROM_NAVEKF2 \ LOG_NKF0_MSG, \