Skip to content

Commit

Permalink
mc_pos_control: fix uninitialized member _old_landing_gear_position
Browse files Browse the repository at this point in the history
  • Loading branch information
bkueng committed Jan 17, 2019
1 parent 7b9cfac commit 85e59c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/mc_pos_control/mc_pos_control_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class MulticopterPositionControl : public ModuleBase<MulticopterPositionControl>
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 */
Expand Down

0 comments on commit 85e59c2

Please sign in to comment.