Repository navigation
Conversation
Built-in misb0601 codec: each UAS Datalink packet in a frame becomes a platform record (position, course, speed, name, camera pointing, frame center); emit all adds frame_center records. Checksums are verified by default. Decoding is the misb crate. Example source docs/examples/misb0601-udp.json maps the aircraft to a friendly air track.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a built-in
misb0601codec plugin for MISB ST 0601, the KLV metadata in STANAG 4609 drone video, next tostanag4607andsapient.Each UAS Datalink packet in a frame becomes a
platformrecord: position (height above ellipsoid when the packet has it, else MSL), heading, course, ground speed, pitch and roll, the platform name (tail number, call sign, designation or mission ID), and the camera pointing (azimuth = heading + relative azimuth, fields of view, slant range) with the frame center. Withemit: "all"it also emits aframe_centerrecord (the ground point at the center of the picture, CE90 turned into a 1-sigma circular error).emit(platform|all),verify_checksum(default true; packets with a bad tag 1 checksum are dropped, and a frame where every packet failed returns an error).Framingcannot describe.docs/examples/misb0601-udp.jsonmaps the platform to a friendly air track (a-f-A-M-F-Q), anddocs/reference.mdgets a paragraph next to STANAG 4607 and SAPIENT. The example is in theapi.rsexamples test too.Decoding is the misb crate (no dependencies, no unsafe, MIT OR Apache-2.0). Disclosure: I wrote it. Its decoder matches paretech/klvdata on every value of 26 public sample packets (the Day Flight and Night Flight STANAG 4609 samples plus the MISB examples), and it is fuzzed in CI.
Tests:
plugin::misb0601unit tests: manifest and options, platform and frame center records from a two-packet datagram, bad checksum dropped or kept per option.crates/ot-source/tests/misb0601_example.rs: a packet through the plugin and the example mapping to anObservation(track key, callsign, position, HAE, course, speed, time).cargo test -p ot-source --lib plugin::misb0601: 4 pass.cargo test -p ot-source --test misb0601_example: 1 pass.cargo clippy -p ot-source --all-targets -- -D warningsandcargo fmt --all --checkare clean (Ubuntu 24.04, toolchain 1.98.1 from rust-toolchain.toml). I did not run the fullscripts/check.sh(UI build); CI will cover it.