mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 07:23:35 +08:00
attitude message cleanup: more cleanup
Signed-off-by: Roman <bapstroman@gmail.com>
This commit is contained in:
@@ -131,9 +131,8 @@ 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.
|
||||
*/
|
||||
|
||||
matrix::Quaternion<float> q(&_v_att->q[0]);
|
||||
matrix::Euler<float> euler(q);
|
||||
float pitch = euler(1);
|
||||
matrix::Eulerf euler = matrix::Quatf(_v_att->q);
|
||||
float pitch = euler.theta();
|
||||
|
||||
if (!_attc->is_fixed_wing_requested()) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user