Skip to content

sensio-core: decode Remote ID with the remoteid crate - #1

Closed
Mattbusel wants to merge 1 commit into
erickramer42:mainfrom
tensorust-ai:deps/remoteid-decoder
Closed

Mattbusel wants to merge 1 commit into
erickramer42:mainfrom
tensorust-ai:deps/remoteid-decoder

Conversation

@Mattbusel

Copy link
Copy Markdown

sensio-core decodes ASTM F3411 by hand and does not check message packs: a pack with two Location messages is accepted, and the second one silently overwrites the first.

This change hands the byte decoding to remoteid 0.3.2 (MIT, no_std, zero dependencies with default features off). It follows opendroneid-core-c field for field and rejects packs the reference library rejects. peil's Message enum and describe.rs are unchanged. About 100 lines of decoding go away, and a test covers the duplicate-Location pack.

I maintain remoteid (Matthew Busel).

@erickramer42

Copy link
Copy Markdown
Owner

Thanks for this. Comparing the two decoders turned up two real bugs on my side: coordinates scaled by multiplying by 1e-7 instead of dividing by 1e7, and speed byte 255 without the multiplier read as unknown instead of 63.75 m/s. Both are fixed in the existing decoder.

On packs: reading each message is deliberate here. The picture takes the latest value across adverts, so a repeated Location in one pack reads the same as two adverts, and dropping the whole pack would hide a drone's ID and position over one odd message.

I'm keeping the decoding in-tree rather than taking a dependency for it: the core reads four message types, and I want that path small and checked against the Open Drone ID sources directly. Closing, with thanks for the careful read.

erickramer42 added a commit that referenced this pull request Nov 22, 2026
…ference does

A coordinate is divided by 1e7, not multiplied by 1e-7, so it is the double nearest its decimal. A speed byte of 255 is unknown only with the multiplier; without it, 63.75 m/s. DESCRIBE_VERSION is 11. Found comparing decoders in #1.
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.

2 participants