From 74785f75bdf1c58713883d735e01811de1334e05 Mon Sep 17 00:00:00 2001 From: alessandro <3762382+potaito@users.noreply.github.com> Date: Wed, 29 Aug 2018 16:04:23 +0200 Subject: [PATCH] ControlMath: Initialize vehicle_attitude_setpoint --- src/modules/mc_pos_control/Utility/ControlMath.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/mc_pos_control/Utility/ControlMath.cpp b/src/modules/mc_pos_control/Utility/ControlMath.cpp index 9ea76747b8..517e35dafc 100644 --- a/src/modules/mc_pos_control/Utility/ControlMath.cpp +++ b/src/modules/mc_pos_control/Utility/ControlMath.cpp @@ -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)