AP_RangeFinder: replace header guard with pragma once
This commit is contained in:
parent
f908dffbeb
commit
f6712c8bc4
@ -1,5 +1,4 @@
|
||||
#ifndef __AP_RANGEFINDER_PRU_H__
|
||||
#define __AP_RANGEFINDER_PRU_H__
|
||||
#pragma once
|
||||
|
||||
#include "RangeFinder.h"
|
||||
#include "RangeFinder_Backend.h"
|
||||
@ -33,4 +32,3 @@ public:
|
||||
private:
|
||||
|
||||
};
|
||||
#endif // __AP_RANGEFINDER_PRU_H__
|
||||
|
@ -1,7 +1,5 @@
|
||||
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
||||
|
||||
#ifndef __AP_RANGEFINDER_LIGHTWARELRF_H__
|
||||
#define __AP_RANGEFINDER_LIGHTWARELRF_H__
|
||||
#pragma once
|
||||
|
||||
#include "RangeFinder.h"
|
||||
#include "RangeFinder_Backend.h"
|
||||
@ -23,4 +21,3 @@ private:
|
||||
// get a reading
|
||||
bool get_reading(uint16_t &reading_cm);
|
||||
};
|
||||
#endif // __AP_RANGEFINDER_LIGHTWARELRF_H__
|
||||
|
@ -1,7 +1,5 @@
|
||||
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
||||
|
||||
#ifndef __AP_RANGEFINDER_LIGHTWARESERIAL_H__
|
||||
#define __AP_RANGEFINDER_LIGHTWARESERIAL_H__
|
||||
#pragma once
|
||||
|
||||
#include "RangeFinder.h"
|
||||
#include "RangeFinder_Backend.h"
|
||||
@ -29,4 +27,3 @@ private:
|
||||
char linebuf[10];
|
||||
uint8_t linebuf_len = 0;
|
||||
};
|
||||
#endif // __AP_RANGEFINDER_LIGHTWARESERIAL_H__
|
||||
|
@ -1,7 +1,5 @@
|
||||
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
||||
|
||||
#ifndef __AP_RANGEFINDER_MAXSONARI2CXL_H__
|
||||
#define __AP_RANGEFINDER_MAXSONARI2CXL_H__
|
||||
#pragma once
|
||||
|
||||
#include "RangeFinder.h"
|
||||
#include "RangeFinder_Backend.h"
|
||||
@ -32,4 +30,3 @@ private:
|
||||
static bool start_reading(void);
|
||||
static bool get_reading(uint16_t &reading_cm);
|
||||
};
|
||||
#endif // __AP_RANGEFINDER_MAXSONARI2CXL_H__
|
||||
|
@ -13,9 +13,7 @@
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef AP_RangeFinder_PX4_H
|
||||
#define AP_RangeFinder_PX4_H
|
||||
#pragma once
|
||||
|
||||
#include "RangeFinder.h"
|
||||
#include "RangeFinder_Backend.h"
|
||||
@ -49,5 +47,3 @@ private:
|
||||
// try to open the PX4 driver and return its fd
|
||||
static int open_driver(void);
|
||||
};
|
||||
|
||||
#endif // AP_RangeFinder_PX4_H
|
||||
|
@ -13,9 +13,7 @@
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef AP_RangeFinder_PX4_PWM_H
|
||||
#define AP_RangeFinder_PX4_PWM_H
|
||||
#pragma once
|
||||
|
||||
#include "RangeFinder.h"
|
||||
#include "RangeFinder_Backend.h"
|
||||
@ -43,5 +41,3 @@ private:
|
||||
uint32_t _good_sample_count;
|
||||
float _last_sample_distance_cm;
|
||||
};
|
||||
|
||||
#endif // AP_RangeFinder_PX4_PWM_H
|
||||
|
@ -1,7 +1,5 @@
|
||||
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
||||
|
||||
#ifndef __AP_RANGEFINDER_PULSEDLIGHTLRF_H__
|
||||
#define __AP_RANGEFINDER_PULSEDLIGHTLRF_H__
|
||||
#pragma once
|
||||
|
||||
#include "RangeFinder.h"
|
||||
#include "RangeFinder_Backend.h"
|
||||
@ -49,4 +47,3 @@ private:
|
||||
static bool start_reading(void);
|
||||
static bool get_reading(uint16_t &reading_cm);
|
||||
};
|
||||
#endif // __AP_RANGEFINDER_PULSEDLIGHTLRF_H__
|
||||
|
@ -1,7 +1,5 @@
|
||||
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
||||
|
||||
#ifndef __AP_RANGEFINDER_ANALOG_H__
|
||||
#define __AP_RANGEFINDER_ANALOG_H__
|
||||
#pragma once
|
||||
|
||||
#include "RangeFinder.h"
|
||||
#include "RangeFinder_Backend.h"
|
||||
@ -24,5 +22,3 @@ private:
|
||||
|
||||
AP_HAL::AnalogSource *source;
|
||||
};
|
||||
#endif // __AP_RANGEFINDER_ANALOG_H__
|
||||
|
||||
|
@ -13,9 +13,7 @@
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __RANGEFINDER_H__
|
||||
#define __RANGEFINDER_H__
|
||||
#pragma once
|
||||
|
||||
#include <AP_Common/AP_Common.h>
|
||||
#include <AP_HAL/AP_HAL.h>
|
||||
@ -191,4 +189,3 @@ private:
|
||||
|
||||
void update_pre_arm_check(uint8_t instance);
|
||||
};
|
||||
#endif // __RANGEFINDER_H__
|
||||
|
@ -13,9 +13,7 @@
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __AP_RANGEFINDER_BACKEND_H__
|
||||
#define __AP_RANGEFINDER_BACKEND_H__
|
||||
#pragma once
|
||||
|
||||
#include <AP_Common/AP_Common.h>
|
||||
#include <AP_HAL/AP_HAL.h>
|
||||
@ -50,4 +48,3 @@ protected:
|
||||
RangeFinder &ranger;
|
||||
RangeFinder::RangeFinder_State &state;
|
||||
};
|
||||
#endif // __AP_RANGEFINDER_BACKEND_H__
|
||||
|
Loading…
Reference in New Issue
Block a user