mirror of https://github.com/ArduPilot/ardupilot
APMrover2: replace header guard with pragma once
This commit is contained in:
parent
a503bc74f2
commit
dd8014dd2f
|
@ -1,7 +1,5 @@
|
|||
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
||||
|
||||
#ifndef PARAMETERS_H
|
||||
#define PARAMETERS_H
|
||||
#pragma once
|
||||
|
||||
#include <AP_Common/AP_Common.h>
|
||||
|
||||
|
@ -322,6 +320,3 @@ public:
|
|||
};
|
||||
|
||||
extern const AP_Param::Info var_info[];
|
||||
|
||||
#endif // PARAMETERS_H
|
||||
|
||||
|
|
|
@ -16,9 +16,7 @@
|
|||
/*
|
||||
main Rover class, containing all vehicle specific state
|
||||
*/
|
||||
|
||||
#ifndef _ROVER_H_
|
||||
#define _ROVER_H_
|
||||
#pragma once
|
||||
|
||||
#define THISFIRMWARE "ArduRover v2.51-beta"
|
||||
#define FIRMWARE_VERSION 2,51,0,FIRMWARE_VERSION_TYPE_BETA
|
||||
|
@ -564,5 +562,3 @@ extern Rover rover;
|
|||
|
||||
using AP_HAL::millis;
|
||||
using AP_HAL::micros;
|
||||
|
||||
#endif // _ROVER_H_
|
||||
|
|
|
@ -1,9 +1,4 @@
|
|||
|
||||
#ifndef __COMPAT_H__
|
||||
#define __COMPAT_H__
|
||||
#pragma once
|
||||
|
||||
#define HIGH 1
|
||||
#define LOW 0
|
||||
|
||||
#endif // __COMPAT_H__
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
//
|
||||
// - Try to keep this file organised in the same order as APM_Config.h.example
|
||||
//
|
||||
#pragma once
|
||||
|
||||
#include "defines.h"
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
||||
|
||||
#ifndef _DEFINES_H
|
||||
#define _DEFINES_H
|
||||
#pragma once
|
||||
|
||||
// Internal defines, don't edit and expect things to work
|
||||
// -------------------------------------------------------
|
||||
|
@ -126,5 +124,3 @@ enum mode {
|
|||
|
||||
// convert a boolean (0 or 1) to a sign for multiplying (0 maps to 1, 1 maps to -1)
|
||||
#define BOOL_TO_SIGN(bvalue) ((bvalue)?-1:1)
|
||||
|
||||
#endif // _DEFINES_H
|
||||
|
|
Loading…
Reference in New Issue