mc_pos_control_main: initialize _in_takeoff

This commit is contained in:
Beat Küng
2017-07-18 12:54:28 +02:00
committed by Lorenz Meier
parent d419537a72
commit bcca17204b
@@ -259,7 +259,7 @@ private:
float _acc_z_lp;
float _vel_max_xy; /**< equal to vel_max except in auto mode when close to target */
bool _in_takeoff; /**< flag for smooth velocity setpoint takeoff ramp */
bool _in_takeoff = false; /**< flag for smooth velocity setpoint takeoff ramp */
float _takeoff_vel_limit; /**< velocity limit value which gets ramped up */
// counters for reset events on position and velocity states