diff --git a/libraries/AC_InputManager/AC_InputManager.h b/libraries/AC_InputManager/AC_InputManager.h index 8698968ba9..a30033ddd2 100644 --- a/libraries/AC_InputManager/AC_InputManager.h +++ b/libraries/AC_InputManager/AC_InputManager.h @@ -1,11 +1,9 @@ // -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- +#pragma once /// @file AC_InputManager.h /// @brief Pilot manual control input library -#ifndef AC_INPUTMANAGER_H -#define AC_INPUTMANAGER_H - #include #include #include @@ -29,5 +27,3 @@ protected: uint16_t _loop_rate; // rate at which output() function is called (normally 400hz) }; - -#endif /* AC_INPUTMANAGER_H */ diff --git a/libraries/AC_InputManager/AC_InputManager_Heli.h b/libraries/AC_InputManager/AC_InputManager_Heli.h index 8c19b348ca..fa0914af22 100644 --- a/libraries/AC_InputManager/AC_InputManager_Heli.h +++ b/libraries/AC_InputManager/AC_InputManager_Heli.h @@ -1,11 +1,9 @@ // -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- +#pragma once /// @file AC_InputManager_Heli.h /// @brief Pilot manual control input library for Conventional Helicopter -#ifndef AC_INPUTMANAGER_HELI_H -#define AC_INPUTMANAGER_HELI_H - #include #include #include "AC_InputManager.h" @@ -54,5 +52,3 @@ private: AP_Float _acro_col_expo; // used to soften collective pitch inputs near center point in Acro mode }; - -#endif /* AC_INPUTMANAGER_HELI_H */ \ No newline at end of file