From 44c63b8873e607ae0384be5a228f81726ced1522 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 21 Jan 2016 11:38:39 +1100 Subject: [PATCH] Copter: move use of defines after config.h and defines.h --- ArduCopter/Copter.h | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/ArduCopter/Copter.h b/ArduCopter/Copter.h index 6ccf10736c..5088176a66 100644 --- a/ArduCopter/Copter.h +++ b/ArduCopter/Copter.h @@ -88,6 +88,18 @@ #include // Battery monitor library #include // board configuration library #include +#include // Landing Gear library +#include +#include +#include +#include // Pilot input handling library +#include // Heli specific pilot input handling library + +// Configuration +#include "defines.h" +#include "config.h" + +// libraries which are dependent on #defines in defines.h and/or config.h #if SPRAYER == ENABLED #include // crop sprayer library #endif @@ -97,20 +109,10 @@ #if PARACHUTE == ENABLED #include // Parachute release library #endif -#include // Landing Gear library -#include -#include -#include #if PRECISION_LANDING == ENABLED #include #include #endif -#include // Pilot input handling library -#include // Heli specific pilot input handling library - -// Configuration -#include "defines.h" -#include "config.h" // Local modules #include "Parameters.h"