mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-08 17:50:34 +08:00
vtol_att_control: convert angle in one line
This commit is contained in:
committed by
Daniel Agar
parent
9f545ae3cf
commit
06f667a8b3
@@ -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()) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user