mc_pos_control: fix uninitialized member _old_landing_gear_position

This commit is contained in:
Beat Küng 2019-01-17 08:05:09 +01:00
parent 7b9cfac767
commit 85e59c210d
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ private:
vehicle_trajectory_waypoint_s _traj_wp_avoidance{}; /**< trajectory waypoint */
vehicle_trajectory_waypoint_s _traj_wp_avoidance_desired{}; /**< desired waypoints, inputs to an obstacle avoidance module */
landing_gear_s _landing_gear{};
int8_t _old_landing_gear_position;
int8_t _old_landing_gear_position{landing_gear_s::GEAR_KEEP};
DEFINE_PARAMETERS(
(ParamFloat<px4::params::MPC_TKO_RAMP_T>) _takeoff_ramp_time, /**< time constant for smooth takeoff ramp */