mavlink : fix legacy vision interface attitude timestamps

This commit is contained in:
Kabir Mohammed
2017-02-24 08:51:05 +01:00
committed by Lorenz Meier
parent 058bc97c83
commit 80e1064523
+2
View File
@@ -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);