mirror of https://github.com/ArduPilot/ardupilot
AP_Motors: Remove double underscore header guard
The code now uses `#pragma once` and double underscore as a prefix can result in undefined behaviour. Ref: https://eel.is/c++draft/lex.name#3.1 Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
parent
96e500fe49
commit
8bb74a12d0
|
@ -2,8 +2,7 @@
|
|||
/// @brief Motor control class for dual heli (tandem or transverse)
|
||||
/// @author Fredrik Hedberg
|
||||
|
||||
#ifndef __AP_MOTORS_HELI_DUAL_H__
|
||||
#define __AP_MOTORS_HELI_DUAL_H__
|
||||
#pragma once
|
||||
|
||||
#include <AP_Common/AP_Common.h>
|
||||
#include <AP_Math/AP_Math.h>
|
||||
|
@ -137,5 +136,3 @@ protected:
|
|||
// internal variables
|
||||
float _collective2_mid_pct = 0.0f; // collective mid parameter value for rear swashplate converted to 0 ~ 1 range
|
||||
};
|
||||
|
||||
#endif // AP_MotorsHeli_Dual
|
||||
|
|
Loading…
Reference in New Issue