Skip to content

Validate IMU packet CRC#49

Draft
lindestad wants to merge 1 commit into
mainfrom
imu-crc-validation
Draft

Validate IMU packet CRC#49
lindestad wants to merge 1 commit into
mainfrom
imu-crc-validation

Conversation

@lindestad
Copy link
Copy Markdown
Collaborator

Adds Topside support for IMU packets that carry a trailing big-endian CRC32.

The receiver still accepts legacy JSON-only IMU packets silently, but once firmware appends a CRC trailer, Topside validates the JSON body before parsing. Bad CRC packets are discarded, counted in receiver stats, and logged with a warning; valid CRC packets do not print anything.

Refs #20.

Validated with env UV_CACHE_DIR=/tmp/uv-cache uv run --frozen --group dev pytest, env UV_CACHE_DIR=/tmp/uv-cache uv run --frozen --group lint ruff check ., and git diff --check.

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