mirror of https://github.com/ArduPilot/ardupilot
APM_OBC: 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
db9f037e4b
commit
da6ee4f744
|
@ -20,11 +20,11 @@
|
|||
Outback Challenge Failsafe module
|
||||
|
||||
*/
|
||||
#include <AP_HAL.h>
|
||||
#include <APM_OBC.h>
|
||||
#include <RC_Channel.h>
|
||||
#include <RC_Channel_aux.h>
|
||||
#include <GCS.h>
|
||||
#include <AP_HAL/AP_HAL.h>
|
||||
#include "APM_OBC.h"
|
||||
#include <RC_Channel/RC_Channel.h>
|
||||
#include <RC_Channel/RC_Channel_aux.h>
|
||||
#include <GCS_MAVLink/GCS.h>
|
||||
|
||||
extern const AP_HAL::HAL& hal;
|
||||
|
||||
|
|
|
@ -22,12 +22,12 @@
|
|||
Andrew Tridgell and CanberraUAV, August 2012
|
||||
*/
|
||||
|
||||
#include <AP_Common.h>
|
||||
#include <AP_Param.h>
|
||||
#include <AP_Mission.h>
|
||||
#include <AP_Baro.h>
|
||||
#include <AP_GPS.h>
|
||||
#include <AP_RCMapper.h>
|
||||
#include <AP_Common/AP_Common.h>
|
||||
#include <AP_Param/AP_Param.h>
|
||||
#include <AP_Mission/AP_Mission.h>
|
||||
#include <AP_Baro/AP_Baro.h>
|
||||
#include <AP_GPS/AP_GPS.h>
|
||||
#include <AP_RCMapper/AP_RCMapper.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue