use matrix .zero

This commit is contained in:
Dennis Mannhart
2018-08-30 08:31:57 +02:00
committed by ChristophTobler
parent e2e8d6d135
commit 3222f583c8
@@ -40,7 +40,7 @@ bool FlightTaskFailsafe::activate()
{
bool ret = FlightTask::activate();
_position_setpoint = _position;
_velocity_setpoint *= 0.0f;
_velocity_setpoint.zero();
_thrust_setpoint = matrix::Vector3f(0.0f, 0.0f, -MPC_THR_HOVER.get() * 0.6f);
_yaw_setpoint = _yaw;
_yawspeed_setpoint = 0.0f;