From 62d4c05a8ee430fb6b3f41631af92038e436dbce Mon Sep 17 00:00:00 2001 From: Caio Marcelo de Oliveira Filho Date: Thu, 22 Oct 2015 13:36:14 -0200 Subject: [PATCH] ArduPlane: 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. --- ArduPlane/Plane.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ArduPlane/Plane.h b/ArduPlane/Plane.h index 31f6779263..f604638054 100644 --- a/ArduPlane/Plane.h +++ b/ArduPlane/Plane.h @@ -69,7 +69,6 @@ #include // Camera/Antenna mount #include // ArduPilot Mega Declination Helper Library #include -#include #include // main loop scheduler #include @@ -104,6 +103,10 @@ #include "Parameters.h" +#if CONFIG_HAL_BOARD == HAL_BOARD_SITL +#include +#endif + /* a plane specific arming class */