From bf6d1afd59c9c4f184120fd372afa1caf7fbc738 Mon Sep 17 00:00:00 2001 From: Caio Marcelo de Oliveira Filho Date: Thu, 22 Oct 2015 13:36:14 -0200 Subject: [PATCH] ArduCopter: 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. --- ArduCopter/Copter.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ArduCopter/Copter.h b/ArduCopter/Copter.h index 710918b292..98c6171a9d 100644 --- a/ArduCopter/Copter.h +++ b/ArduCopter/Copter.h @@ -84,7 +84,6 @@ #include // circle navigation library #include // ArduPilot Mega Declination Helper Library #include // Arducopter Fence library -#include // software in the loop support #include // main loop scheduler #include // RC input mapping library #include // Notify library @@ -117,6 +116,10 @@ // Local modules #include "Parameters.h" +#if CONFIG_HAL_BOARD == HAL_BOARD_SITL +#include +#endif + class Copter : public AP_HAL::HAL::Callbacks { public: friend class GCS_MAVLINK;