Add --devel=sbs_category: append aircraft category as SBS field 24#138
Closed
chrislanzara wants to merge 1 commit into
Closed
Add --devel=sbs_category: append aircraft category as SBS field 24#138chrislanzara wants to merge 1 commit into
chrislanzara wants to merge 1 commit into
Conversation
Aircraft category (A0-D7) is decoded directly from ADS-B DF17 identification messages (metype 1-4) and carries no dependency on any external database or lookup. When --devel=sbs_category is set: - Field 23 (RSSI placeholder) is always emitted, populated only if --devel=sbs_rssi is also active; this keeps field 24 at a fixed position regardless of whether RSSI is enabled. - Field 24 is the two-hex-char category (e.g. "A3") when the current message is an identification frame; empty otherwise. Buffer allocation raised from 250 to 260 bytes when sbs_category is active. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Owner
|
please use one flag for all your extra fields. --devel=sbs_extra_fields removing the rssi devel option is ok, devel options have no stability guarantee. |
Owner
|
let's use a new PR so no force pushing is required. |
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.
Summary
Adds a new
--devel=sbs_categoryruntime flag that appends the aircraftcategory as field 24 of the SBS output.
identification messages (metype 1–4) — no external database or lookup
A3) onidentification messages; empty on all other message types
sbs_categoryisactive, populated only if
--devel=sbs_rssiis also set — keepsfield 24 at a fixed position regardless of whether RSSI is enabled
--devel=pattern established bysbs_rssiUsage
Combined with RSSI:
Note: comma-separated form (
--devel=sbs_rssi,sbs_category) does notwork — the
--devel=parser treats the comma as a name/value separator.Use separate flags.
Example output (MSG,1 identification frames only)
Field 24 is empty on MSG types 3–8.