diff --git a/libraries/AP_AHRS/AP_AHRS.cpp b/libraries/AP_AHRS/AP_AHRS.cpp
index aab7dee011..5d7e6c8eaf 100644
--- a/libraries/AP_AHRS/AP_AHRS.cpp
+++ b/libraries/AP_AHRS/AP_AHRS.cpp
@@ -14,8 +14,8 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see .
*/
-#include
-#include
+#include "AP_AHRS.h"
+#include
extern const AP_HAL::HAL& hal;
#if AHRS_EKF_USE_ALWAYS
diff --git a/libraries/AP_AHRS/AP_AHRS.h b/libraries/AP_AHRS/AP_AHRS.h
index 792e9fe386..149ea5ed61 100644
--- a/libraries/AP_AHRS/AP_AHRS.h
+++ b/libraries/AP_AHRS/AP_AHRS.h
@@ -22,14 +22,14 @@
*
*/
-#include
+#include
#include
-#include
-#include
-#include
-#include
-#include
-#include
+#include
+#include
+#include
+#include
+#include
+#include
#include "../AP_OpticalFlow/AP_OpticalFlow.h"
@@ -444,8 +444,8 @@ protected:
uint8_t _active_accel_instance;
};
-#include
-#include
+#include "AP_AHRS_DCM.h"
+#include "AP_AHRS_NavEKF.h"
#if AP_AHRS_NAVEKF_AVAILABLE
#define AP_AHRS_TYPE AP_AHRS_NavEKF
diff --git a/libraries/AP_AHRS/AP_AHRS_DCM.cpp b/libraries/AP_AHRS/AP_AHRS_DCM.cpp
index ecdb465217..432bda539e 100644
--- a/libraries/AP_AHRS/AP_AHRS_DCM.cpp
+++ b/libraries/AP_AHRS/AP_AHRS_DCM.cpp
@@ -21,8 +21,8 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see .
*/
-#include
-#include
+#include "AP_AHRS.h"
+#include
extern const AP_HAL::HAL& hal;
diff --git a/libraries/AP_AHRS/AP_AHRS_NavEKF.cpp b/libraries/AP_AHRS/AP_AHRS_NavEKF.cpp
index 7feaba56da..cfceadeb8a 100644
--- a/libraries/AP_AHRS/AP_AHRS_NavEKF.cpp
+++ b/libraries/AP_AHRS/AP_AHRS_NavEKF.cpp
@@ -18,9 +18,9 @@
* ArduPilot
*
*/
-#include
-#include
-#include
+#include
+#include "AP_AHRS.h"
+#include
#if AP_AHRS_NAVEKF_AVAILABLE
diff --git a/libraries/AP_AHRS/AP_AHRS_NavEKF.h b/libraries/AP_AHRS/AP_AHRS_NavEKF.h
index 7748abd2ba..8b20e4fae1 100644
--- a/libraries/AP_AHRS/AP_AHRS_NavEKF.h
+++ b/libraries/AP_AHRS/AP_AHRS_NavEKF.h
@@ -21,11 +21,11 @@
*
*/
-#include
-#include
+#include
+#include "AP_AHRS.h"
#if HAL_CPU_CLASS >= HAL_CPU_CLASS_150
-#include
+#include
#define AP_AHRS_NAVEKF_AVAILABLE 1
#define AP_AHRS_NAVEKF_SETTLE_TIME_MS 20000 // time in milliseconds the ekf needs to settle after being started
diff --git a/libraries/AP_AHRS/examples/AHRS_Test/AHRS_Test.cpp b/libraries/AP_AHRS/examples/AHRS_Test/AHRS_Test.cpp
index 966d7e2458..b22e7c2000 100644
--- a/libraries/AP_AHRS/examples/AHRS_Test/AHRS_Test.cpp
+++ b/libraries/AP_AHRS/examples/AHRS_Test/AHRS_Test.cpp
@@ -4,44 +4,44 @@
// Simple test for the AP_AHRS interface
//
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include // ArduPilot Mega Barometer Library
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include // ArduPilot Mega Barometer Library
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
const AP_HAL::HAL& hal = AP_HAL_BOARD_DRIVER;