mirror of https://github.com/ArduPilot/ardupilot
SITL: started to use C++11 variable initialisation
This commit is contained in:
parent
b541bfb739
commit
14bdfe2889
|
@ -26,17 +26,7 @@
|
|||
constructor
|
||||
*/
|
||||
Helicopter::Helicopter(const char *home_str, const char *frame_str) :
|
||||
Aircraft(home_str, frame_str),
|
||||
terminal_rotation_rate(4*radians(360.0)),
|
||||
hover_throttle(0.65f),
|
||||
terminal_velocity(40.0f),
|
||||
hover_lean(8.0f),
|
||||
yaw_zero(0.1f),
|
||||
rotor_rot_accel(radians(20)),
|
||||
roll_rate_max(radians(1400)),
|
||||
pitch_rate_max(radians(1400)),
|
||||
yaw_rate_max(radians(1400)),
|
||||
rsc_setpoint(0.8f)
|
||||
Aircraft(home_str, frame_str)
|
||||
{
|
||||
mass = 2.13f;
|
||||
|
||||
|
|
|
@ -39,16 +39,16 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
float terminal_rotation_rate;
|
||||
float hover_throttle;
|
||||
float terminal_velocity;
|
||||
float hover_lean;
|
||||
float yaw_zero;
|
||||
float rotor_rot_accel;
|
||||
float roll_rate_max;
|
||||
float pitch_rate_max;
|
||||
float yaw_rate_max;
|
||||
float rsc_setpoint;
|
||||
float terminal_rotation_rate = 4*radians(360.0f);
|
||||
float hover_throttle = 0.65f;
|
||||
float terminal_velocity = 40;
|
||||
float hover_lean = 8.0f;
|
||||
float yaw_zero = 0.1f;
|
||||
float rotor_rot_accel = radians(20);
|
||||
float roll_rate_max = radians(1400);
|
||||
float pitch_rate_max = radians(1400);
|
||||
float yaw_rate_max = radians(1400);
|
||||
float rsc_setpoint = 0.8f;
|
||||
float thrust_scale;
|
||||
float tail_thrust_scale;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue