AC_AttitudeControl: replace header guard with pragma once

This commit is contained in:
Lucas De Marchi 2016-02-17 23:24:42 -02:00 committed by Andrew Tridgell
parent ff04871fc5
commit f42484bcc5
4 changed files with 4 additions and 18 deletions

View File

@ -1,11 +1,9 @@
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: t -*-
#pragma once
/// @file AC_AttitudeControl.h
/// @brief ArduCopter attitude control library
#ifndef AC_AttitudeControl_H
#define AC_AttitudeControl_H
#include <AP_Common/AP_Common.h>
#include <AP_Param/AP_Param.h>
#include <AP_Math/AP_Math.h>
@ -354,5 +352,3 @@ protected:
#define AC_ATTITUDE_CONTROL_LOG_FORMAT(msg) { msg, sizeof(AC_AttitudeControl::log_Attitude), \
"ATT", "cccccCC", "RollIn,Roll,PitchIn,Pitch,YawIn,Yaw,NavYaw" }
#endif //AC_AttitudeControl_H

View File

@ -1,11 +1,9 @@
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: t -*-
#pragma once
/// @file AC_AttitudeControl_Heli.h
/// @brief ArduCopter attitude control library for traditional helicopters
#ifndef AC_ATTITUDECONTROL_HELI_H
#define AC_ATTITUDECONTROL_HELI_H
#include "AC_AttitudeControl.h"
#include <AP_Motors/AP_MotorsHeli.h>
#include <AC_PID/AC_HELI_PID.h>
@ -133,5 +131,3 @@ private:
LowPassFilterFloat yaw_acceleration_feedforward_filter;
};
#endif //AC_ATTITUDECONTROL_HELI_H

View File

@ -1,11 +1,9 @@
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: t -*-
#pragma once
/// @file AC_AttitudeControl_Multi.h
/// @brief ArduCopter attitude control library
#ifndef AC_AttitudeControl_Multi_H
#define AC_AttitudeControl_Multi_H
#include "AC_AttitudeControl.h"
#include <AP_Motors/AP_MotorsMulticopter.h>
@ -34,5 +32,3 @@ protected:
AP_MotorsMulticopter& _motors_multi;
};
#endif // AC_AttitudeControl_Multi_H

View File

@ -1,6 +1,5 @@
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
#ifndef AC_POSCONTROL_H
#define AC_POSCONTROL_H
#pragma once
#include <AP_Common/AP_Common.h>
#include <AP_Param/AP_Param.h>
@ -407,4 +406,3 @@ private:
Vector2f _accel_target_jerk_limited; // acceleration target jerk limited to 100deg/s/s
LowPassFilterVector2f _accel_target_filter; // acceleration target filter
};
#endif // AC_POSCONTROL_H