mc_pos_control: during transition set vel_sp to zero

This commit is contained in:
Dennis Mannhart
2017-05-15 15:41:47 +02:00
parent 1ee160a5ff
commit a98c0ef25d
@@ -1604,8 +1604,11 @@ void MulticopterPositionControl::control_auto(float dt)
}
} else {
/* no waypoint, do nothing, setpoint was already reset */
/* we are in idle */
/* idle or triplet not valid, set velocity setpoint to zero */
_vel_sp.zero();
_run_pos_control = false;
_run_alt_control = false;
}
}