From eb3615375230d7c72b3a66eda525b6dc1f131905 Mon Sep 17 00:00:00 2001 From: Jacob Walser Date: Thu, 13 Apr 2017 14:58:43 -0400 Subject: [PATCH] Sub: Reorganize #includes --- ArduSub/Sub.h | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/ArduSub/Sub.h b/ArduSub/Sub.h index bcc2c4f896..5c7ab8065c 100644 --- a/ArduSub/Sub.h +++ b/ArduSub/Sub.h @@ -32,16 +32,17 @@ #include #include #include +#include +#include // interface and maths for accelerometer calibration +#include // ArduPilot Mega Vector/Matrix math Library +#include // ArduPilot Mega Declination Helper Library // Application dependencies -#include #include // Serial manager library #include // ArduPilot GPS library #include // ArduPilot Mega Flash Memory Library #include #include // ArduPilot Mega Magnetometer Library -#include // ArduPilot Mega Vector/Matrix math Library -#include // interface and maths for accelerometer calibration #include // ArduPilot Mega Inertial Sensor (accel & gyro) Library #include #include @@ -63,9 +64,7 @@ #include // ArduPilot Mega inertial navigation library #include // Waypoint navigation library #include // circle navigation library -#include // ArduPilot Mega Declination Helper Library #include // Fence library - #include // main loop scheduler #include // Notify library #include // Battery monitor library @@ -74,11 +73,13 @@ #include // Joystick/gamepad button function assignment #include // Leak detector #include -#include "AP_Arming_Sub.h" + +// Local modules #include "defines.h" #include "config.h" - #include "GCS_Mavlink.h" +#include "Parameters.h" +#include "AP_Arming_Sub.h" // libraries which are dependent on #defines in defines.h and/or config.h #if OPTFLOW == ENABLED @@ -113,9 +114,6 @@ #include // Photo or video camera #endif -// Local modules -#include "Parameters.h" - #if CONFIG_HAL_BOARD == HAL_BOARD_SITL #include #endif