Skip to content

[fix] Convert PandarXT32 block timestamp offsets to seconds - #3

Open
masaru87 wants to merge 1 commit into
MapIV:mainfrom
masaru87:fix-xt32-timestamp-units
Open

[fix] Convert PandarXT32 block timestamp offsets to seconds#3
masaru87 wants to merge 1 commit into
MapIV:mainfrom
masaru87:fix-xt32-timestamp-units

Conversation

@masaru87

Copy link
Copy Markdown

Summary

  • Convert PandarXT32 block firing offsets from microseconds to seconds before adding them to Unix timestamps.
  • Add regression coverage for per-point timestamp spacing within one packet.

Details

The block offsets are expressed in microseconds, while datetime.timestamp() returns seconds. Adding them without conversion makes timestamps in one packet differ by up to hundreds of seconds instead of microseconds.

The Hesai PandarXT user manual, Appendix B.3 and B.4, specifies block and channel firing time offsets in microseconds:

https://www.hesaitech.com/wp-content/uploads/2025/04/PandarXT_User_Manual_X01-en-250410.pdf

Tests

  • uv run pytest -q — 122 passed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant