Skip to content

Commit

Permalink
AP_Module: remove use of AP_AHRS from most headers
Browse files Browse the repository at this point in the history
don't need to know the details, just that it is a class
  • Loading branch information
peterbarker committed Aug 31, 2024
1 parent c2a9e6c commit e7e3797
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions libraries/AP_Module/AP_Module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

#if AP_MODULE_SUPPORTED

#include <AP_AHRS/AP_AHRS.h>

/*
support for external modules
*/
Expand Down
4 changes: 2 additions & 2 deletions libraries/AP_Module/AP_Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -48,7 +48,7 @@ class AP_Module {
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);
Expand Down

0 comments on commit e7e3797

Please sign in to comment.