vtol_att_control: convert angle in one line

This commit is contained in:
Matthias Grob
2019-11-22 16:57:20 +01:00
committed by Daniel Agar
parent 9f545ae3cf
commit 06f667a8b3
+1 -2
View File
@@ -86,8 +86,7 @@ void Tailsitter::update_vtol_state()
* For the backtransition the pitch is controlled in MC mode again and switches to full MC control reaching the sufficient pitch angle.
*/
Eulerf euler = Quatf(_v_att->q);
float pitch = euler.theta();
float pitch = Eulerf(Quatf(_v_att->q)).theta();
if (!_attc->is_fixed_wing_requested()) {