mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
mavlink move to matrix lib
This commit is contained in:
parent
7830d3503e
commit
ad2b96b523
@ -1808,11 +1808,11 @@ protected:
|
||||
vmsg.x = vpos.x;
|
||||
vmsg.y = vpos.y;
|
||||
vmsg.z = vpos.z;
|
||||
math::Quaternion q(vatt.q);
|
||||
math::Vector<3> rpy = q.to_euler();
|
||||
vmsg.roll = rpy(0);
|
||||
vmsg.pitch = rpy(1);
|
||||
vmsg.yaw = rpy(2);
|
||||
|
||||
matrix::Eulerf euler = matrix::Quatf(vatt.q);
|
||||
vmsg.roll = euler.phi();
|
||||
vmsg.pitch = euler.theta();
|
||||
vmsg.yaw = euler.psi();
|
||||
|
||||
mavlink_msg_vision_position_estimate_send_struct(_mavlink->get_channel(), &vmsg);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user