From 94cafc8a5134802b5af862a5aa600d2968afbcd9 Mon Sep 17 00:00:00 2001 From: Gustavo Jose de Sousa Date: Tue, 11 Aug 2015 16:28:43 +1000 Subject: [PATCH] AP_InertialNav: 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. --- libraries/AP_InertialNav/AP_InertialNav.h | 8 ++++---- libraries/AP_InertialNav/AP_InertialNav_NavEKF.cpp | 2 +- libraries/AP_InertialNav/AP_InertialNav_NavEKF.h | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libraries/AP_InertialNav/AP_InertialNav.h b/libraries/AP_InertialNav/AP_InertialNav.h index dcb03bc4e8..61a9d86536 100644 --- a/libraries/AP_InertialNav/AP_InertialNav.h +++ b/libraries/AP_InertialNav/AP_InertialNav.h @@ -3,10 +3,10 @@ #ifndef __AP_INERTIALNAV_H__ #define __AP_INERTIALNAV_H__ -#include -#include // ArduPilot Mega IMU Library -#include // ArduPilot Mega Barometer Library -#include // FIFO buffer library +#include +#include // ArduPilot Mega IMU Library +#include // ArduPilot Mega Barometer Library +#include // FIFO buffer library #include "../AP_NavEKF/AP_Nav_Common.h" // definitions shared by inertial and ekf nav filters /* diff --git a/libraries/AP_InertialNav/AP_InertialNav_NavEKF.cpp b/libraries/AP_InertialNav/AP_InertialNav_NavEKF.cpp index b03b103431..8bd38ebf19 100644 --- a/libraries/AP_InertialNav/AP_InertialNav_NavEKF.cpp +++ b/libraries/AP_InertialNav/AP_InertialNav_NavEKF.cpp @@ -1,6 +1,6 @@ /// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- -#include +#include #include "AP_InertialNav.h" #if AP_AHRS_NAVEKF_AVAILABLE diff --git a/libraries/AP_InertialNav/AP_InertialNav_NavEKF.h b/libraries/AP_InertialNav/AP_InertialNav_NavEKF.h index e64e342270..cb06111813 100644 --- a/libraries/AP_InertialNav/AP_InertialNav_NavEKF.h +++ b/libraries/AP_InertialNav/AP_InertialNav_NavEKF.h @@ -10,7 +10,7 @@ #ifndef __AP_INERTIALNAV_NAVEKF_H__ #define __AP_INERTIALNAV_NAVEKF_H__ -#include // definitions shared by inertial and ekf nav filters +#include // definitions shared by inertial and ekf nav filters class AP_InertialNav_NavEKF : public AP_InertialNav {