From 50161b1f09c31beade9a0bb5b4057276e9eac4ee Mon Sep 17 00:00:00 2001 From: Teisybe <35064004+TeisybeLT@users.noreply.github.com> Date: Sat, 11 Jul 2026 07:31:51 +0300 Subject: [PATCH] fix(mavlink): Timestamp missing from HIL_STATE_QUATERION stream (#27862) Propagated attitude timestamp to HIL_STATE_QUATERNION MavLink message stream. This fixes empty timestamps when ground truth is accessed via MavSDK. --- src/modules/mavlink/streams/HIL_STATE_QUATERNION.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/mavlink/streams/HIL_STATE_QUATERNION.hpp b/src/modules/mavlink/streams/HIL_STATE_QUATERNION.hpp index b2dcb5c4261..c17dbde5554 100644 --- a/src/modules/mavlink/streams/HIL_STATE_QUATERNION.hpp +++ b/src/modules/mavlink/streams/HIL_STATE_QUATERNION.hpp @@ -80,6 +80,7 @@ private: mavlink_hil_state_quaternion_t msg{}; // vehicle_attitude -> hil_state_quaternion + msg.time_usec = att.timestamp; msg.attitude_quaternion[0] = att.q[0]; msg.attitude_quaternion[1] = att.q[1]; msg.attitude_quaternion[2] = att.q[2];