AP_InertialNav: 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 99dc2d1b39
commit 90749b6f40
2 changed files with 3 additions and 4 deletions

View File

@ -1,7 +1,7 @@
#include <AP_HAL/AP_HAL.h>
#include <AP_Baro/AP_Baro.h>
#include "AP_InertialNav.h"
#include <AP_AHRS/AP_AHRS.h>
/*
A wrapper around the AP_InertialNav class which uses the NavEKF
filter if available, and falls back to the AP_InertialNav filter

View File

@ -5,14 +5,13 @@
*/
#pragma once
#include <AP_AHRS/AP_AHRS.h>
#include <AP_NavEKF/AP_Nav_Common.h> // 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)
{}