From 90749b6f40e2e487be20dc2800e13cac829f16d7 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sat, 31 Aug 2024 12:01:02 +1000 Subject: [PATCH] AP_InertialNav: remove use of AP_AHRS from most headers don't need to know the details, just that it is a class --- libraries/AP_InertialNav/AP_InertialNav.cpp | 4 ++-- libraries/AP_InertialNav/AP_InertialNav.h | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/libraries/AP_InertialNav/AP_InertialNav.cpp b/libraries/AP_InertialNav/AP_InertialNav.cpp index 436a4d6fbd..326fdf0746 100644 --- a/libraries/AP_InertialNav/AP_InertialNav.cpp +++ b/libraries/AP_InertialNav/AP_InertialNav.cpp @@ -1,7 +1,7 @@ -#include -#include #include "AP_InertialNav.h" +#include + /* A wrapper around the AP_InertialNav class which uses the NavEKF filter if available, and falls back to the AP_InertialNav filter diff --git a/libraries/AP_InertialNav/AP_InertialNav.h b/libraries/AP_InertialNav/AP_InertialNav.h index 9159a41809..0a50e732df 100644 --- a/libraries/AP_InertialNav/AP_InertialNav.h +++ b/libraries/AP_InertialNav/AP_InertialNav.h @@ -5,14 +5,13 @@ */ #pragma once -#include #include // definitions shared by inertial and ekf nav filters class AP_InertialNav { public: // Constructor - AP_InertialNav(AP_AHRS &ahrs) : + AP_InertialNav(class AP_AHRS &ahrs) : _ahrs_ekf(ahrs) {}