Skip to content
Snippets Groups Projects
Commit 74785f75 authored by alessandro's avatar alessandro
Browse files

ControlMath: Initialize vehicle_attitude_setpoint

parent 715fad8b
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment