mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 23:03:34 +08:00
mavlink : fix legacy vision interface attitude timestamps
This commit is contained in:
committed by
Lorenz Meier
parent
058bc97c83
commit
80e1064523
@@ -1164,6 +1164,8 @@ MavlinkReceiver::handle_message_vision_position_estimate(mavlink_message_t *msg)
|
||||
|
||||
struct vehicle_attitude_s vision_attitude = {};
|
||||
|
||||
vision_attitude.timestamp = sync_stamp(pos.usec);
|
||||
|
||||
math::Quaternion q;
|
||||
q.from_euler(pos.roll, pos.pitch, pos.yaw);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user