ControlMath: Initialize vehicle_attitude_setpoint

This commit is contained in:
alessandro
2018-08-29 16:04:23 +02:00
parent 715fad8bf1
commit 74785f75bd
@@ -45,7 +45,7 @@ namespace ControlMath
{
vehicle_attitude_setpoint_s thrustToAttitude(const matrix::Vector3f &thr_sp, const float yaw_sp)
{
vehicle_attitude_setpoint_s att_sp;
vehicle_attitude_setpoint_s att_sp = {};
att_sp.yaw_body = yaw_sp;
// desired body_z axis = -normalize(thrust_vector)