Repository navigation
Conversation
|
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. |
…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.
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
remoteid0.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'sMessageenum 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).