From fa6e43be77d85cd8dfcc46edf9825cb6516d1c5b Mon Sep 17 00:00:00 2001 From: Michael du Breuil Date: Tue, 27 Aug 2019 13:08:01 -0700 Subject: [PATCH] AP_Logger: Forward declare AHRS This reduces the number of places this is implicitly included, and helps to reduce the scope of files that get rebuilt --- libraries/AP_Logger/AP_Logger.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/AP_Logger/AP_Logger.h b/libraries/AP_Logger/AP_Logger.h index 08f2a5cb1b..3d69c05e76 100644 --- a/libraries/AP_Logger/AP_Logger.h +++ b/libraries/AP_Logger/AP_Logger.h @@ -7,7 +7,6 @@ #include #include #include -#include #include #include #include @@ -22,6 +21,9 @@ #include "LoggerMessageWriter.h" class AP_Logger_Backend; +class AP_AHRS; +class AP_AHRS_View; +struct ekf_timing; // do not do anything here apart from add stuff; maintaining older // entries means log analysis is easier @@ -240,9 +242,7 @@ public: void Write_Power(void); void Write_AHRS2(AP_AHRS &ahrs); void Write_POS(AP_AHRS &ahrs); -#if AP_AHRS_NAVEKF_AVAILABLE void Write_EKF_Timing(const char *name, uint64_t time_us, const struct ekf_timing &timing); -#endif void Write_Radio(const mavlink_radio_t &packet); void Write_Message(const char *message); void Write_MessageF(const char *fmt, ...);