Skip to content

Add --devel=sbs_category: append aircraft category as SBS field 24#138

Closed
chrislanzara wants to merge 1 commit into
wiedehopf:devfrom
chrislanzara:feature/sbs-category
Closed

Add --devel=sbs_category: append aircraft category as SBS field 24#138
chrislanzara wants to merge 1 commit into
wiedehopf:devfrom
chrislanzara:feature/sbs-category

Conversation

@chrislanzara

Copy link
Copy Markdown
Contributor

Summary

Adds a new --devel=sbs_category runtime flag that appends the aircraft
category as field 24 of the SBS output.

  • Aircraft category (A0–D7) is decoded directly from ADS-B DF17
    identification messages (metype 1–4) — no external database or lookup
  • Field 24 is emitted as a two-hex-char value (e.g. A3) on
    identification messages; empty on all other message types
  • Field 23 (RSSI placeholder) is always emitted when sbs_category is
    active, populated only if --devel=sbs_rssi is also set — keeps
    field 24 at a fixed position regardless of whether RSSI is enabled
  • Buffer allocation raised from 250 to 260 bytes when active
  • Follows the same --devel= pattern established by sbs_rssi

Usage

--devel=sbs_category

Combined with RSSI:

--devel=sbs_rssi --devel=sbs_category

Note: comma-separated form (--devel=sbs_rssi,sbs_category) does not
work — the --devel= parser treats the comma as a name/value separator.
Use separate flags.

Example output (MSG,1 identification frames only)

MSG,1,...,EXS059B ,,,,,,,,,,,0,-29.5,A3
MSG,1,...,SRD226E ,,,,,,,,,,,0,-14.6,A1
MSG,1,...,RYR91XZ ,,,,,,,,,,,0,-6.3,A3

Field 24 is empty on MSG types 3–8.

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>
@wiedehopf

Copy link
Copy Markdown
Owner

please use one flag for all your extra fields.
call it whatever you like.

--devel=sbs_extra_fields

removing the rssi devel option is ok, devel options have no stability guarantee.

@wiedehopf

Copy link
Copy Markdown
Owner

let's use a new PR so no force pushing is required.

@wiedehopf wiedehopf closed this Jun 8, 2026
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