diff --git a/ArduSub/Sub.h b/ArduSub/Sub.h index fcd7f99ff1..0326b37880 100644 --- a/ArduSub/Sub.h +++ b/ArduSub/Sub.h @@ -81,16 +81,10 @@ #include // ArduCopter Fence library #include // Arducopter stop at fence library #include // main loop scheduler -#if RCMAP_ENABLED == ENABLED -#include // RC input mapping library -#endif #include // Notify library #include // Battery monitor library #include // board configuration library #include -#if RPM_ENABLED == ENABLED -#include -#endif #include // Pilot input handling library #include // Joystick/gamepad button function assignment #include "../libraries/AP_LeakDetector/AP_LeakDetector.h" // Leak detector @@ -100,6 +94,14 @@ #include "GCS_Mavlink.h" // libraries which are dependent on #defines in defines.h and/or config.h +#if RCMAP_ENABLED == ENABLED +#include // RC input mapping library +#endif + +#if RPM_ENABLED == ENABLED +#include +#endif + #if GRIPPER_ENABLED == ENABLED #include // gripper stuff #endif