Browse Source

AP_Frsky_Telem: 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.
mission-4.1.18
Gustavo Jose de Sousa 10 years ago committed by Andrew Tridgell
parent
commit
00219c5e0c
  1. 2
      libraries/AP_Frsky_Telem/AP_Frsky_Telem.cpp
  2. 16
      libraries/AP_Frsky_Telem/AP_Frsky_Telem.h

2
libraries/AP_Frsky_Telem/AP_Frsky_Telem.cpp

@ -20,7 +20,7 @@ @@ -20,7 +20,7 @@
/*
FRSKY Telemetry library
*/
#include <AP_Frsky_Telem.h>
#include "AP_Frsky_Telem.h"
extern const AP_HAL::HAL& hal;
//constructor

16
libraries/AP_Frsky_Telem/AP_Frsky_Telem.h

@ -17,14 +17,14 @@ @@ -17,14 +17,14 @@
#ifndef __AP_FRSKY_TELEM_H__
#define __AP_FRSKY_TELEM_H__
#include <AP_HAL.h>
#include <AP_Param.h>
#include <AP_Math.h>
#include <AP_GPS.h>
#include <AP_AHRS.h>
#include <AP_Baro.h>
#include <AP_BattMonitor.h>
#include <AP_SerialManager.h>
#include <AP_HAL/AP_HAL.h>
#include <AP_Param/AP_Param.h>
#include <AP_Math/AP_Math.h>
#include <AP_GPS/AP_GPS.h>
#include <AP_AHRS/AP_AHRS.h>
#include <AP_Baro/AP_Baro.h>
#include <AP_BattMonitor/AP_BattMonitor.h>
#include <AP_SerialManager/AP_SerialManager.h>
/* FrSky sensor hub data IDs */
#define FRSKY_ID_GPS_ALT_BP 0x01

Loading…
Cancel
Save