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:
Gustavo Jose de Sousa 2015-08-11 16:28:41 +10:00 committed by Andrew Tridgell
parent ee2c388bb0
commit db9f037e4b
10 changed files with 31 additions and 31 deletions

View File

@ -33,9 +33,9 @@
just need to be able to enter and exit AUTOTUNE mode
*/
#include <AP_HAL.h>
#include <AP_Common.h>
#include <AP_Math.h>
#include <AP_HAL/AP_HAL.h>
#include <AP_Common/AP_Common.h>
#include <AP_Math/AP_Math.h>
#include "AP_AutoTune.h"
extern const AP_HAL::HAL& hal;

View File

@ -3,9 +3,9 @@
#ifndef __AP_AUTOTUNE_H__
#define __AP_AUTOTUNE_H__
#include <AP_HAL.h>
#include <AP_Param.h>
#include <DataFlash.h>
#include <AP_HAL/AP_HAL.h>
#include <AP_Param/AP_Param.h>
#include <DataFlash/DataFlash.h>
class AP_AutoTune {
public:

View File

@ -17,7 +17,7 @@
// Initial Code by Jon Challinger
// Modified by Paul Riseborough
#include <AP_HAL.h>
#include <AP_HAL/AP_HAL.h>
#include "AP_PitchController.h"
extern const AP_HAL::HAL& hal;

View File

@ -3,12 +3,12 @@
#ifndef __AP_PITCH_CONTROLLER_H__
#define __AP_PITCH_CONTROLLER_H__
#include <AP_AHRS.h>
#include <AP_Common.h>
#include <AP_Vehicle.h>
#include <AP_AutoTune.h>
#include <DataFlash.h>
#include <AP_Math.h>
#include <AP_AHRS/AP_AHRS.h>
#include <AP_Common/AP_Common.h>
#include <AP_Vehicle/AP_Vehicle.h>
#include "AP_AutoTune.h"
#include <DataFlash/DataFlash.h>
#include <AP_Math/AP_Math.h>
class AP_PitchController {
public:

View File

@ -18,7 +18,7 @@
// Modified by Paul Riseborough
//
#include <AP_HAL.h>
#include <AP_HAL/AP_HAL.h>
#include "AP_RollController.h"
extern const AP_HAL::HAL& hal;

View File

@ -3,12 +3,12 @@
#ifndef __AP_ROLL_CONTROLLER_H__
#define __AP_ROLL_CONTROLLER_H__
#include <AP_AHRS.h>
#include <AP_Common.h>
#include <AP_Vehicle.h>
#include <AP_AutoTune.h>
#include <DataFlash.h>
#include <AP_Math.h>
#include <AP_AHRS/AP_AHRS.h>
#include <AP_Common/AP_Common.h>
#include <AP_Vehicle/AP_Vehicle.h>
#include "AP_AutoTune.h"
#include <DataFlash/DataFlash.h>
#include <AP_Math/AP_Math.h>
class AP_RollController {
public:

View File

@ -18,8 +18,8 @@
// Based upon the roll controller by Paul Riseborough and Jon Challinger
//
#include <AP_Math.h>
#include <AP_HAL.h>
#include <AP_Math/AP_Math.h>
#include <AP_HAL/AP_HAL.h>
#include "AP_SteerController.h"
extern const AP_HAL::HAL& hal;

View File

@ -3,10 +3,10 @@
#ifndef __AP_STEER_CONTROLLER_H__
#define __AP_STEER_CONTROLLER_H__
#include <AP_AHRS.h>
#include <AP_Common.h>
#include <AP_Vehicle.h>
#include <DataFlash.h>
#include <AP_AHRS/AP_AHRS.h>
#include <AP_Common/AP_Common.h>
#include <AP_Vehicle/AP_Vehicle.h>
#include <DataFlash/DataFlash.h>
class AP_SteerController {
public:

View File

@ -18,7 +18,7 @@
// Modified by Paul Riseborough to implement a three loop autopilot
// topology
//
#include <AP_HAL.h>
#include <AP_HAL/AP_HAL.h>
#include "AP_YawController.h"
extern const AP_HAL::HAL& hal;

View File

@ -3,10 +3,10 @@
#ifndef __AP_YAW_CONTROLLER_H__
#define __AP_YAW_CONTROLLER_H__
#include <AP_AHRS.h>
#include <AP_Common.h>
#include <AP_Vehicle.h>
#include <DataFlash.h>
#include <AP_AHRS/AP_AHRS.h>
#include <AP_Common/AP_Common.h>
#include <AP_Vehicle/AP_Vehicle.h>
#include <DataFlash/DataFlash.h>
#include <math.h>
class AP_YawController {