From a3fb1c0e4fd925af36bf9838873fbb69c702d4c3 Mon Sep 17 00:00:00 2001 From: Caio Marcelo de Oliveira Filho Date: Thu, 22 Oct 2015 13:36:14 -0200 Subject: [PATCH] AntennaTracker: include SITL only for SITL board Include board-specific files only when the board is used. Since these should be exceptional cases, let the includer handle the ifdef instead of putting ifdefs in every platform-specific header. In the future we should evaluate whether the HAL for the board should instantiate this. --- AntennaTracker/Tracker.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/AntennaTracker/Tracker.h b/AntennaTracker/Tracker.h index 4e3fcf1761..42b37d8110 100644 --- a/AntennaTracker/Tracker.h +++ b/AntennaTracker/Tracker.h @@ -51,7 +51,6 @@ #include // Serial manager library #include // ArduPilot Mega Declination Helper Library #include -#include #include #include // main loop scheduler #include @@ -76,6 +75,10 @@ #include "Parameters.h" #include +#if CONFIG_HAL_BOARD == HAL_BOARD_SITL +#include +#endif + class Tracker : public AP_HAL::HAL::Callbacks { public: friend class GCS_MAVLINK;