Skip to content

Commit

Permalink
mc_pos_control: initialize takeoff altitude reference
Browse files Browse the repository at this point in the history
according to @dagar's review comment.
  • Loading branch information
MaEtUgR authored and LorenzMeier committed May 22, 2019
1 parent 8036efd commit ae96e16
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 @@ -106,7 +106,7 @@ class MulticopterPositionControl : public ModuleBase<MulticopterPositionControl>
bool _in_takeoff_ramp = false; /**< true while takeoff ramp is applied */
bool _position_triggered_takeoff = false; /**< true if takeoff was triggered by a position setpoint */
float _takeoff_ramp_velocity = -1.f; /**< current value of the smooth takeoff ramp */
float _takeoff_reference_z; /**< z-position when takeoff ramp was initiated */
float _takeoff_reference_z = 0.f; /**< z-position when takeoff ramp was initiated */

orb_advert_t _att_sp_pub{nullptr}; /**< attitude setpoint publication */
orb_advert_t _traj_sp_pub{nullptr}; /**< trajectory setpoints publication */
Expand Down

0 comments on commit ae96e16

Please sign in to comment.