mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
Float value correction
This commit is contained in:
committed by
Lorenz Meier
parent
70178266f0
commit
48be61160d
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user