AP_Module: 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 42282dab65
commit e19ae3ec01
2 changed files with 4 additions and 2 deletions

View File

@ -17,6 +17,8 @@
#if AP_MODULE_SUPPORTED
#include <AP_AHRS/AP_AHRS.h>
/*
support for external modules
*/

View File

@ -29,7 +29,7 @@
#if AP_MODULE_SUPPORTED
#include <AP_AHRS/AP_AHRS.h>
#include <AP_Math/vector3.h>
#ifndef AP_MODULE_DEFAULT_DIRECTORY
#define AP_MODULE_DEFAULT_DIRECTORY "/usr/lib/ardupilot/modules"
@ -48,7 +48,7 @@ public:
static void call_hook_setup_complete(void);
// call any AHRS_update hooks
static void call_hook_AHRS_update(const AP_AHRS &ahrs);
static void call_hook_AHRS_update(const class AP_AHRS &ahrs);
// call any gyro_sample hooks
static void call_hook_gyro_sample(uint8_t instance, float dt, const Vector3f &gyro);