mirror of https://github.com/ArduPilot/ardupilot
AP_Limits: 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
0ef2d1054f
commit
f7fedee8cc
|
@ -11,7 +11,7 @@
|
|||
|
||||
#include "AP_Limits.h"
|
||||
#include "AP_Limit_Module.h"
|
||||
#include <AP_Param.h>
|
||||
#include <AP_Param/AP_Param.h>
|
||||
|
||||
class AP_Limit_Altitude : public AP_Limit_Module {
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
/// @author Andrew Tridgell
|
||||
/// Andreas Antonopoulos
|
||||
|
||||
#include <AP_Limit_GPSLock.h>
|
||||
#include "AP_Limit_GPSLock.h"
|
||||
|
||||
const AP_Param::GroupInfo AP_Limit_GPSLock::var_info[] PROGMEM = {
|
||||
// @Param: GPSLCK_ON
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
/// Andreas Antonopoulos
|
||||
|
||||
#include "AP_Limit_Geofence.h"
|
||||
#include <AP_HAL.h>
|
||||
#include <AP_HAL/AP_HAL.h>
|
||||
|
||||
extern const AP_HAL::HAL& hal;
|
||||
|
||||
|
|
|
@ -11,10 +11,10 @@
|
|||
|
||||
#include "AP_Limits.h"
|
||||
#include "AP_Limit_Module.h"
|
||||
#include <AP_Math.h>
|
||||
#include <AP_Param.h>
|
||||
#include <AP_Math/AP_Math.h>
|
||||
#include <AP_Param/AP_Param.h>
|
||||
#include <GPS.h>
|
||||
#include <../StorageManager/StorageManager.h>
|
||||
#include <StorageManager/StorageManager.h>
|
||||
|
||||
#define MAX_FENCEPOINTS 6
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
/// Andreas Antonopoulos
|
||||
|
||||
|
||||
#include <AP_Limit_Module.h>
|
||||
#include "AP_Limit_Module.h"
|
||||
|
||||
extern const prog_char_t *get_module_name(enum moduleid i) {
|
||||
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
#ifndef __AP_LIMIT_MODULE_H__
|
||||
#define __AP_LIMIT_MODULE_H__
|
||||
|
||||
#include <AP_Common.h>
|
||||
#include <AP_Param.h>
|
||||
#include <AP_Common/AP_Common.h>
|
||||
#include <AP_Param/AP_Param.h>
|
||||
|
||||
// The module IDs are defined as powers of 2, to make a bit-field
|
||||
enum moduleid {
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
/// @author Andrew Tridgell
|
||||
/// Andreas Antonopoulos
|
||||
|
||||
#include <AP_Limits.h>
|
||||
#include <AP_Limit_Module.h>
|
||||
#include "AP_Limits.h"
|
||||
#include "AP_Limit_Module.h"
|
||||
|
||||
const AP_Param::GroupInfo AP_Limits::var_info[] PROGMEM = {
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#endif
|
||||
|
||||
#include <stdint.h>
|
||||
#include <AP_Param.h>
|
||||
#include <AP_Param/AP_Param.h>
|
||||
#include "AP_Limit_Module.h"
|
||||
#include "AP_Limit_Altitude.h"
|
||||
#include "AP_Limit_Geofence.h"
|
||||
|
|
Loading…
Reference in New Issue