mirror of https://github.com/ArduPilot/ardupilot
AP_Terrain: 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.
This commit is contained in:
parent
ebd1a15622
commit
62d5e7ca92
|
@ -14,12 +14,12 @@
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <AP_HAL.h>
|
||||
#include <AP_Common.h>
|
||||
#include <AP_Math.h>
|
||||
#include <GCS_MAVLink.h>
|
||||
#include <GCS.h>
|
||||
#include <DataFlash.h>
|
||||
#include <AP_HAL/AP_HAL.h>
|
||||
#include <AP_Common/AP_Common.h>
|
||||
#include <AP_Math/AP_Math.h>
|
||||
#include <GCS_MAVLink/GCS_MAVLink.h>
|
||||
#include <GCS_MAVLink/GCS.h>
|
||||
#include <DataFlash/DataFlash.h>
|
||||
#include "AP_Terrain.h"
|
||||
|
||||
#if AP_TERRAIN_AVAILABLE
|
||||
|
|
|
@ -17,9 +17,9 @@
|
|||
#ifndef __AP_TERRAIN_H__
|
||||
#define __AP_TERRAIN_H__
|
||||
|
||||
#include <AP_Common.h>
|
||||
#include <AP_HAL.h>
|
||||
#include <DataFlash.h>
|
||||
#include <AP_Common/AP_Common.h>
|
||||
#include <AP_HAL/AP_HAL.h>
|
||||
#include <DataFlash/DataFlash.h>
|
||||
|
||||
#if HAL_OS_POSIX_IO && defined(HAL_BOARD_TERRAIN_DIRECTORY)
|
||||
#define AP_TERRAIN_AVAILABLE 1
|
||||
|
@ -29,10 +29,10 @@
|
|||
|
||||
#if AP_TERRAIN_AVAILABLE
|
||||
|
||||
#include <AP_Param.h>
|
||||
#include <AP_AHRS.h>
|
||||
#include <AP_Mission.h>
|
||||
#include <AP_Rally.h>
|
||||
#include <AP_Param/AP_Param.h>
|
||||
#include <AP_AHRS/AP_AHRS.h>
|
||||
#include <AP_Mission/AP_Mission.h>
|
||||
#include <AP_Rally/AP_Rally.h>
|
||||
|
||||
#define TERRAIN_DEBUG 0
|
||||
|
||||
|
|
|
@ -17,11 +17,11 @@
|
|||
handle vehicle <-> GCS communications for terrain library
|
||||
*/
|
||||
|
||||
#include <AP_HAL.h>
|
||||
#include <AP_Common.h>
|
||||
#include <AP_Math.h>
|
||||
#include <GCS_MAVLink.h>
|
||||
#include <GCS.h>
|
||||
#include <AP_HAL/AP_HAL.h>
|
||||
#include <AP_Common/AP_Common.h>
|
||||
#include <AP_Math/AP_Math.h>
|
||||
#include <GCS_MAVLink/GCS_MAVLink.h>
|
||||
#include <GCS_MAVLink/GCS.h>
|
||||
#include "AP_Terrain.h"
|
||||
|
||||
#if AP_TERRAIN_AVAILABLE
|
||||
|
|
|
@ -17,11 +17,11 @@
|
|||
handle disk IO for terrain code
|
||||
*/
|
||||
|
||||
#include <AP_HAL.h>
|
||||
#include <AP_Common.h>
|
||||
#include <AP_Math.h>
|
||||
#include <GCS_MAVLink.h>
|
||||
#include <GCS.h>
|
||||
#include <AP_HAL/AP_HAL.h>
|
||||
#include <AP_Common/AP_Common.h>
|
||||
#include <AP_Math/AP_Math.h>
|
||||
#include <GCS_MAVLink/GCS_MAVLink.h>
|
||||
#include <GCS_MAVLink/GCS.h>
|
||||
#include "AP_Terrain.h"
|
||||
|
||||
#if AP_TERRAIN_AVAILABLE
|
||||
|
|
|
@ -17,11 +17,11 @@
|
|||
handle checking mission points for terrain data
|
||||
*/
|
||||
|
||||
#include <AP_HAL.h>
|
||||
#include <AP_Common.h>
|
||||
#include <AP_Math.h>
|
||||
#include <GCS_MAVLink.h>
|
||||
#include <GCS.h>
|
||||
#include <AP_HAL/AP_HAL.h>
|
||||
#include <AP_Common/AP_Common.h>
|
||||
#include <AP_Math/AP_Math.h>
|
||||
#include <GCS_MAVLink/GCS_MAVLink.h>
|
||||
#include <GCS_MAVLink/GCS.h>
|
||||
#include "AP_Terrain.h"
|
||||
|
||||
#if AP_TERRAIN_AVAILABLE
|
||||
|
|
|
@ -17,11 +17,11 @@
|
|||
handle disk IO for terrain code
|
||||
*/
|
||||
|
||||
#include <AP_HAL.h>
|
||||
#include <AP_Common.h>
|
||||
#include <AP_Math.h>
|
||||
#include <GCS_MAVLink.h>
|
||||
#include <GCS.h>
|
||||
#include <AP_HAL/AP_HAL.h>
|
||||
#include <AP_Common/AP_Common.h>
|
||||
#include <AP_Math/AP_Math.h>
|
||||
#include <GCS_MAVLink/GCS_MAVLink.h>
|
||||
#include <GCS_MAVLink/GCS.h>
|
||||
#include "AP_Terrain.h"
|
||||
|
||||
#if AP_TERRAIN_AVAILABLE
|
||||
|
|
Loading…
Reference in New Issue