mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-12-01 13:40:38 +08:00
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.
This commit is contained in:
1 parent
795c69a362
commit
50161b1f09
1 file changed
+1
@@ -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];
|
||||
|
||||
Reference in new issue
Block a user