From 42b8ee78cf95630e7d7a85ac0c0639b35cce1a50 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sat, 31 Aug 2024 12:01:02 +1000 Subject: [PATCH] AP_Compass: remove use of AP_AHRS from most headers don't need to know the details, just that it is a class --- libraries/AP_Compass/AP_Compass.cpp | 1 + libraries/AP_Compass/Compass_learn.h | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/libraries/AP_Compass/AP_Compass.cpp b/libraries/AP_Compass/AP_Compass.cpp index 2f3584e732..da8e2a1313 100644 --- a/libraries/AP_Compass/AP_Compass.cpp +++ b/libraries/AP_Compass/AP_Compass.cpp @@ -13,6 +13,7 @@ #include #include #include +#include #include "AP_Compass_config.h" diff --git a/libraries/AP_Compass/Compass_learn.h b/libraries/AP_Compass/Compass_learn.h index f24de57fef..c4b1f9a9e8 100644 --- a/libraries/AP_Compass/Compass_learn.h +++ b/libraries/AP_Compass/Compass_learn.h @@ -1,14 +1,12 @@ #pragma once -#include - /* compass learning using magnetic field tables from AP_Declination and GSF */ class CompassLearn { public: - CompassLearn(Compass &compass); + CompassLearn(class Compass &compass); // called on each compass read void update(void);