mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-15 19:21:41 +08:00
mavlink disable conversion helpers and use Matrix
This commit is contained in:
committed by
Lorenz Meier
parent
a76c82f5f2
commit
619cc6aedc
@@ -2852,7 +2852,8 @@ protected:
|
||||
memcpy(&msg.q[0], &att_sp.q_d[0], sizeof(msg.q));
|
||||
|
||||
} else {
|
||||
mavlink_euler_to_quaternion(att_sp.roll_body, att_sp.pitch_body, att_sp.yaw_body, msg.q);
|
||||
matrix::Quatf q = matrix::Eulerf(att_sp.roll_body, att_sp.pitch_body, att_sp.yaw_body);
|
||||
memcpy(&msg.q[0], q.data(), sizeof(msg.q));
|
||||
}
|
||||
|
||||
msg.body_roll_rate = att_rates_sp.roll;
|
||||
|
||||
Reference in New Issue
Block a user