AP_InertialNav: replace header guard with pragma once

This commit is contained in:
Lucas De Marchi 2016-02-17 23:25:30 -02:00 committed by Andrew Tridgell
parent 44bc2eceb4
commit 79837c343f
2 changed files with 2 additions and 11 deletions

View File

@ -1,7 +1,5 @@
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
#ifndef __AP_INERTIALNAV_H__
#define __AP_INERTIALNAV_H__
#pragma once
#include <AP_AHRS/AP_AHRS.h>
#include <AP_InertialSensor/AP_InertialSensor.h> // ArduPilot Mega IMU Library
@ -120,5 +118,3 @@ public:
#if AP_AHRS_NAVEKF_AVAILABLE
#include "AP_InertialNav_NavEKF.h"
#endif
#endif // __AP_INERTIALNAV_H__

View File

@ -5,10 +5,7 @@
filter if available, and falls back to the AP_InertialNav filter
when EKF is not available
*/
#ifndef __AP_INERTIALNAV_NAVEKF_H__
#define __AP_INERTIALNAV_NAVEKF_H__
#pragma once
#include <AP_NavEKF/AP_Nav_Common.h> // definitions shared by inertial and ekf nav filters
@ -124,5 +121,3 @@ private:
bool _haveabspos;
AP_AHRS_NavEKF &_ahrs_ekf;
};
#endif // __AP_INERTIALNAV_NAVEKF_H__