Float value correction

This commit is contained in:
Sander Smeets 2017-07-10 02:40:32 +02:00 committed by Lorenz Meier
parent 70178266f0
commit 48be61160d
1 changed files with 1 additions and 1 deletions

View File

@ -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);