mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-13 13:50:34 +08:00
use matrix .zero
This commit is contained in:
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;
|
||||
|
||||
Reference in New Issue
Block a user