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) {}