APM_Control: 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
ee2c388bb0
commit
db9f037e4b
@ -33,9 +33,9 @@
|
|||||||
just need to be able to enter and exit AUTOTUNE mode
|
just need to be able to enter and exit AUTOTUNE mode
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <AP_HAL.h>
|
#include <AP_HAL/AP_HAL.h>
|
||||||
#include <AP_Common.h>
|
#include <AP_Common/AP_Common.h>
|
||||||
#include <AP_Math.h>
|
#include <AP_Math/AP_Math.h>
|
||||||
#include "AP_AutoTune.h"
|
#include "AP_AutoTune.h"
|
||||||
|
|
||||||
extern const AP_HAL::HAL& hal;
|
extern const AP_HAL::HAL& hal;
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
#ifndef __AP_AUTOTUNE_H__
|
#ifndef __AP_AUTOTUNE_H__
|
||||||
#define __AP_AUTOTUNE_H__
|
#define __AP_AUTOTUNE_H__
|
||||||
|
|
||||||
#include <AP_HAL.h>
|
#include <AP_HAL/AP_HAL.h>
|
||||||
#include <AP_Param.h>
|
#include <AP_Param/AP_Param.h>
|
||||||
#include <DataFlash.h>
|
#include <DataFlash/DataFlash.h>
|
||||||
|
|
||||||
class AP_AutoTune {
|
class AP_AutoTune {
|
||||||
public:
|
public:
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
// Initial Code by Jon Challinger
|
// Initial Code by Jon Challinger
|
||||||
// Modified by Paul Riseborough
|
// Modified by Paul Riseborough
|
||||||
|
|
||||||
#include <AP_HAL.h>
|
#include <AP_HAL/AP_HAL.h>
|
||||||
#include "AP_PitchController.h"
|
#include "AP_PitchController.h"
|
||||||
|
|
||||||
extern const AP_HAL::HAL& hal;
|
extern const AP_HAL::HAL& hal;
|
||||||
|
@ -3,12 +3,12 @@
|
|||||||
#ifndef __AP_PITCH_CONTROLLER_H__
|
#ifndef __AP_PITCH_CONTROLLER_H__
|
||||||
#define __AP_PITCH_CONTROLLER_H__
|
#define __AP_PITCH_CONTROLLER_H__
|
||||||
|
|
||||||
#include <AP_AHRS.h>
|
#include <AP_AHRS/AP_AHRS.h>
|
||||||
#include <AP_Common.h>
|
#include <AP_Common/AP_Common.h>
|
||||||
#include <AP_Vehicle.h>
|
#include <AP_Vehicle/AP_Vehicle.h>
|
||||||
#include <AP_AutoTune.h>
|
#include "AP_AutoTune.h"
|
||||||
#include <DataFlash.h>
|
#include <DataFlash/DataFlash.h>
|
||||||
#include <AP_Math.h>
|
#include <AP_Math/AP_Math.h>
|
||||||
|
|
||||||
class AP_PitchController {
|
class AP_PitchController {
|
||||||
public:
|
public:
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
// Modified by Paul Riseborough
|
// Modified by Paul Riseborough
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <AP_HAL.h>
|
#include <AP_HAL/AP_HAL.h>
|
||||||
#include "AP_RollController.h"
|
#include "AP_RollController.h"
|
||||||
|
|
||||||
extern const AP_HAL::HAL& hal;
|
extern const AP_HAL::HAL& hal;
|
||||||
|
@ -3,12 +3,12 @@
|
|||||||
#ifndef __AP_ROLL_CONTROLLER_H__
|
#ifndef __AP_ROLL_CONTROLLER_H__
|
||||||
#define __AP_ROLL_CONTROLLER_H__
|
#define __AP_ROLL_CONTROLLER_H__
|
||||||
|
|
||||||
#include <AP_AHRS.h>
|
#include <AP_AHRS/AP_AHRS.h>
|
||||||
#include <AP_Common.h>
|
#include <AP_Common/AP_Common.h>
|
||||||
#include <AP_Vehicle.h>
|
#include <AP_Vehicle/AP_Vehicle.h>
|
||||||
#include <AP_AutoTune.h>
|
#include "AP_AutoTune.h"
|
||||||
#include <DataFlash.h>
|
#include <DataFlash/DataFlash.h>
|
||||||
#include <AP_Math.h>
|
#include <AP_Math/AP_Math.h>
|
||||||
|
|
||||||
class AP_RollController {
|
class AP_RollController {
|
||||||
public:
|
public:
|
||||||
|
@ -18,8 +18,8 @@
|
|||||||
// Based upon the roll controller by Paul Riseborough and Jon Challinger
|
// Based upon the roll controller by Paul Riseborough and Jon Challinger
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <AP_Math.h>
|
#include <AP_Math/AP_Math.h>
|
||||||
#include <AP_HAL.h>
|
#include <AP_HAL/AP_HAL.h>
|
||||||
#include "AP_SteerController.h"
|
#include "AP_SteerController.h"
|
||||||
|
|
||||||
extern const AP_HAL::HAL& hal;
|
extern const AP_HAL::HAL& hal;
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
#ifndef __AP_STEER_CONTROLLER_H__
|
#ifndef __AP_STEER_CONTROLLER_H__
|
||||||
#define __AP_STEER_CONTROLLER_H__
|
#define __AP_STEER_CONTROLLER_H__
|
||||||
|
|
||||||
#include <AP_AHRS.h>
|
#include <AP_AHRS/AP_AHRS.h>
|
||||||
#include <AP_Common.h>
|
#include <AP_Common/AP_Common.h>
|
||||||
#include <AP_Vehicle.h>
|
#include <AP_Vehicle/AP_Vehicle.h>
|
||||||
#include <DataFlash.h>
|
#include <DataFlash/DataFlash.h>
|
||||||
|
|
||||||
class AP_SteerController {
|
class AP_SteerController {
|
||||||
public:
|
public:
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
// Modified by Paul Riseborough to implement a three loop autopilot
|
// Modified by Paul Riseborough to implement a three loop autopilot
|
||||||
// topology
|
// topology
|
||||||
//
|
//
|
||||||
#include <AP_HAL.h>
|
#include <AP_HAL/AP_HAL.h>
|
||||||
#include "AP_YawController.h"
|
#include "AP_YawController.h"
|
||||||
|
|
||||||
extern const AP_HAL::HAL& hal;
|
extern const AP_HAL::HAL& hal;
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
#ifndef __AP_YAW_CONTROLLER_H__
|
#ifndef __AP_YAW_CONTROLLER_H__
|
||||||
#define __AP_YAW_CONTROLLER_H__
|
#define __AP_YAW_CONTROLLER_H__
|
||||||
|
|
||||||
#include <AP_AHRS.h>
|
#include <AP_AHRS/AP_AHRS.h>
|
||||||
#include <AP_Common.h>
|
#include <AP_Common/AP_Common.h>
|
||||||
#include <AP_Vehicle.h>
|
#include <AP_Vehicle/AP_Vehicle.h>
|
||||||
#include <DataFlash.h>
|
#include <DataFlash/DataFlash.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
class AP_YawController {
|
class AP_YawController {
|
||||||
|
Loading…
Reference in New Issue
Block a user