From 48be61160d43978e0e030769809309bf38c8faea Mon Sep 17 00:00:00 2001 From: Sander Smeets Date: Mon, 10 Jul 2017 02:40:32 +0200 Subject: [PATCH] Float value correction --- src/modules/vtol_att_control/standard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/vtol_att_control/standard.cpp b/src/modules/vtol_att_control/standard.cpp index ad0ddfbcfc..32fd427c50 100644 --- a/src/modules/vtol_att_control/standard.cpp +++ b/src/modules/vtol_att_control/standard.cpp @@ -392,7 +392,7 @@ void Standard::update_mc_state() * _v_att_sp->thrust * _params_standard.forward_thrust_scale; // return the vehicle to level position - float pitch_new = 0; + float pitch_new = 0.0f; // create corrected desired body z axis in heading frame matrix::Dcmf R_tmp = matrix::Eulerf(roll_new, pitch_new, 0.0f);