mirror of https://github.com/ArduPilot/ardupilot
GCS_Console: 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
fa7e34aaa3
commit
dda0eac2dd
|
@ -1,6 +1,6 @@
|
|||
|
||||
#include <AP_HAL.h>
|
||||
#include <GCS_Console.h>
|
||||
#include <AP_HAL/AP_HAL.h>
|
||||
#include "GCS_Console.h"
|
||||
|
||||
extern const AP_HAL::HAL& hal;
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#ifndef __GCS_CONSOLE_H__
|
||||
#define __GCS_CONSOLE_H__
|
||||
|
||||
#include <GCS_MAVLink.h>
|
||||
#include <GCS_MAVLink/GCS_MAVLink.h>
|
||||
|
||||
/* Ensure compatibility with GCS_MAVLink library. We need the DATA16
|
||||
* and DATA32 mesages. If these aren't present, get them from the mavlink
|
||||
|
|
|
@ -6,18 +6,18 @@
|
|||
// This code is placed into the public domain.
|
||||
//
|
||||
|
||||
#include <AP_Common.h>
|
||||
#include <AP_Progmem.h>
|
||||
#include <AP_HAL.h>
|
||||
#include <AP_HAL_AVR.h>
|
||||
#include <AP_Common/AP_Common.h>
|
||||
#include <AP_Progmem/AP_Progmem.h>
|
||||
#include <AP_HAL/AP_HAL.h>
|
||||
#include <AP_HAL_AVR/AP_HAL_AVR.h>
|
||||
|
||||
#include <AP_Param.h>
|
||||
#include <AP_Math.h>
|
||||
#include <GCS_MAVLink.h>
|
||||
#include <AP_Mission.h>
|
||||
#include <StorageManager.h>
|
||||
#include <AP_Terrain.h>
|
||||
#include <GCS_Console.h>
|
||||
#include <AP_Param/AP_Param.h>
|
||||
#include <AP_Math/AP_Math.h>
|
||||
#include <GCS_MAVLink/GCS_MAVLink.h>
|
||||
#include <AP_Mission/AP_Mission.h>
|
||||
#include <StorageManager/StorageManager.h>
|
||||
#include <AP_Terrain/AP_Terrain.h>
|
||||
#include <GCS_Console/GCS_Console.h>
|
||||
|
||||
#include "simplegcs.h"
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
|
||||
#include <AP_HAL.h>
|
||||
#include <AP_HAL/AP_HAL.h>
|
||||
extern const AP_HAL::HAL& hal;
|
||||
|
||||
#include <GCS_MAVLink.h>
|
||||
#include <GCS_Console.h>
|
||||
#include <GCS_MAVLink/GCS_MAVLink.h>
|
||||
#include <GCS_Console/GCS_Console.h>
|
||||
#include "simplegcs.h"
|
||||
|
||||
void send_heartbeat(mavlink_channel_t chan) {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#ifndef __SIMPLE_GCS_H__
|
||||
#define __SIMPLE_GCS_H__
|
||||
|
||||
#include <GCS_MAVLink.h>
|
||||
#include <GCS_MAVLink/GCS_MAVLink.h>
|
||||
|
||||
void send_heartbeat(mavlink_channel_t chan);
|
||||
bool try_send_message(mavlink_channel_t chan, int msgid);
|
||||
|
|
Loading…
Reference in New Issue