From 01397cb00c6b6741ab1f2321794f2d8d7d3920fd Mon Sep 17 00:00:00 2001 From: Gustavo Jose de Sousa Date: Tue, 11 Aug 2015 16:28:40 +1000 Subject: [PATCH] APMrover2: standardize inclusion of libaries headers This commit changes the way libraries headers are included in source files: - If the header is in the same directory the source belongs to, so the notation '#include ""' is used with the path relative to the directory containing the source. - If the header is outside the directory containing the source, then we use the notation '#include <>' with the path relative to libraries folder. Some of the advantages of such approach: - Only one search path for libraries headers. - OSs like Windows may have a better lookup time. --- APMrover2/Parameters.h | 2 +- APMrover2/Rover.h | 110 ++++++++++++++++++++--------------------- 2 files changed, 56 insertions(+), 56 deletions(-) diff --git a/APMrover2/Parameters.h b/APMrover2/Parameters.h index f0c8208410..b7cd38d926 100644 --- a/APMrover2/Parameters.h +++ b/APMrover2/Parameters.h @@ -3,7 +3,7 @@ #ifndef PARAMETERS_H #define PARAMETERS_H -#include +#include // Global parameter class. // diff --git a/APMrover2/Rover.h b/APMrover2/Rover.h index 3e2ed0f698..093bf16e05 100644 --- a/APMrover2/Rover.h +++ b/APMrover2/Rover.h @@ -26,63 +26,63 @@ #include // Libraries -#include -#include -#include -#include -#include -#include -#include // ArduPilot GPS library -#include // ArduPilot Mega Analog to Digital Converter Library -#include -#include -#include // ArduPilot Mega Magnetometer Library -#include // ArduPilot Mega Vector/Matrix math Library -#include // Inertial Sensor (uncalibated IMU) Library -#include // ArduPilot Mega DCM Library -#include -#include // Mission command library -#include -#include -#include // PID library -#include // RC Channel Library -#include // Range finder library -#include // Filter library -#include // Filter library - butterworth filter -#include // FIFO buffer library -#include // Mode Filter from Filter library -#include // Mode Filter from Filter library -#include // APM relay -#include -#include // Camera/Antenna mount -#include // Camera triggering -#include // MAVLink GCS definitions -#include // Serial manager library -#include // needed for AHRS build -#include // needed for AHRS build -#include -#include // RC input mapping library -#include -#include // main loop scheduler +#include +#include +#include +#include +#include +#include +#include // ArduPilot GPS library +#include // ArduPilot Mega Analog to Digital Converter Library +#include +#include +#include // ArduPilot Mega Magnetometer Library +#include // ArduPilot Mega Vector/Matrix math Library +#include // Inertial Sensor (uncalibated IMU) Library +#include // ArduPilot Mega DCM Library +#include +#include // Mission command library +#include +#include +#include // PID library +#include // RC Channel Library +#include // Range finder library +#include // Filter library +#include // Filter library - butterworth filter +#include // FIFO buffer library +#include // Mode Filter from Filter library +#include // Mode Filter from Filter library +#include // APM relay +#include +#include // Camera/Antenna mount +#include // Camera triggering +#include // MAVLink GCS definitions +#include // Serial manager library +#include // needed for AHRS build +#include // needed for AHRS build +#include +#include // RC input mapping library +#include +#include // main loop scheduler #include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include #include "compat.h" -#include // Notify library -#include // Battery monitor library -#include // Optical Flow library +#include // Notify library +#include // Battery monitor library +#include // Optical Flow library // Configuration #include "config.h" @@ -90,9 +90,9 @@ // Local modules #include "defines.h" #include "Parameters.h" -#include "GCS.h" +#include -#include // ArduPilot Mega Declination Helper Library +#include // ArduPilot Mega Declination Helper Library class Rover { public: