ArduCopter: replace header guard with pragma once
This commit is contained in:
parent
dd8014dd2f
commit
e88ba38595
@ -1,7 +1,5 @@
|
|||||||
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
||||||
|
#pragma once
|
||||||
#ifndef _COPTER_H
|
|
||||||
#define _COPTER_H
|
|
||||||
|
|
||||||
#define THISFIRMWARE "APM:Copter V3.4-dev"
|
#define THISFIRMWARE "APM:Copter V3.4-dev"
|
||||||
#define FIRMWARE_VERSION 3,4,0,FIRMWARE_VERSION_TYPE_DEV
|
#define FIRMWARE_VERSION 3,4,0,FIRMWARE_VERSION_TYPE_DEV
|
||||||
@ -1068,5 +1066,3 @@ extern Copter copter;
|
|||||||
|
|
||||||
using AP_HAL::millis;
|
using AP_HAL::millis;
|
||||||
using AP_HAL::micros;
|
using AP_HAL::micros;
|
||||||
|
|
||||||
#endif // _COPTER_H_
|
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
||||||
|
#pragma once
|
||||||
#ifndef PARAMETERS_H
|
|
||||||
#define PARAMETERS_H
|
|
||||||
|
|
||||||
#include <AP_Common/AP_Common.h>
|
#include <AP_Common/AP_Common.h>
|
||||||
|
|
||||||
@ -589,6 +587,3 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
extern const AP_Param::Info var_info[];
|
extern const AP_Param::Info var_info[];
|
||||||
|
|
||||||
#endif // PARAMETERS_H
|
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
||||||
//
|
//
|
||||||
#ifndef __ARDUCOPTER_CONFIG_H__
|
#pragma once
|
||||||
#define __ARDUCOPTER_CONFIG_H__
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
@ -769,5 +769,3 @@
|
|||||||
#else
|
#else
|
||||||
#define FIRMWARE_STRING THISFIRMWARE " (" GIT_VERSION ")"
|
#define FIRMWARE_STRING THISFIRMWARE " (" GIT_VERSION ")"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // __ARDUCOPTER_CONFIG_H__
|
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
||||||
|
#pragma once
|
||||||
#ifndef _DEFINES_H
|
|
||||||
#define _DEFINES_H
|
|
||||||
|
|
||||||
#include <AP_HAL/AP_HAL_Boards.h>
|
#include <AP_HAL/AP_HAL_Boards.h>
|
||||||
|
|
||||||
@ -436,5 +434,3 @@ enum ThrowModeState {
|
|||||||
// for PILOT_THR_BHV parameter
|
// for PILOT_THR_BHV parameter
|
||||||
#define THR_BEHAVE_FEEDBACK_FROM_MID_STICK (1<<0)
|
#define THR_BEHAVE_FEEDBACK_FROM_MID_STICK (1<<0)
|
||||||
#define THR_BEHAVE_HIGH_THROTTLE_CANCELS_LAND (1<<1)
|
#define THR_BEHAVE_HIGH_THROTTLE_CANCELS_LAND (1<<1)
|
||||||
|
|
||||||
#endif // _DEFINES_H
|
|
||||||
|
Loading…
Reference in New Issue
Block a user