AP_Compass: remove use of AP_AHRS from most headers

don't need to know the details, just that it is a class
This commit is contained in:
Peter Barker 2024-08-31 12:01:02 +10:00 committed by Andrew Tridgell
parent 9eec4fdff2
commit 42b8ee78cf
2 changed files with 2 additions and 3 deletions

View File

@ -13,6 +13,7 @@
#include <AP_ExternalAHRS/AP_ExternalAHRS.h> #include <AP_ExternalAHRS/AP_ExternalAHRS.h>
#include <AP_CustomRotations/AP_CustomRotations.h> #include <AP_CustomRotations/AP_CustomRotations.h>
#include <GCS_MAVLink/GCS.h> #include <GCS_MAVLink/GCS.h>
#include <AP_AHRS/AP_AHRS.h>
#include "AP_Compass_config.h" #include "AP_Compass_config.h"

View File

@ -1,14 +1,12 @@
#pragma once #pragma once
#include <AP_AHRS/AP_AHRS.h>
/* /*
compass learning using magnetic field tables from AP_Declination and GSF compass learning using magnetic field tables from AP_Declination and GSF
*/ */
class CompassLearn { class CompassLearn {
public: public:
CompassLearn(Compass &compass); CompassLearn(class Compass &compass);
// called on each compass read // called on each compass read
void update(void); void update(void);