Browse Source

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>
c415-sdk
Patrick José Pereira 5 years ago committed by Peter Barker
parent
commit
8bb74a12d0
  1. 5
      libraries/AP_Motors/AP_MotorsHeli_Dual.h

5
libraries/AP_Motors/AP_MotorsHeli_Dual.h

@ -2,8 +2,7 @@ @@ -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: @@ -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…
Cancel
Save