Skip to content

Rename the devel=sbs_rssi to devel=sbs_extra_fields and add aircraft category#139

Merged
wiedehopf merged 1 commit into
wiedehopf:devfrom
chrislanzara:feature/sbs-category
Jun 8, 2026
Merged

Rename the devel=sbs_rssi to devel=sbs_extra_fields and add aircraft category#139
wiedehopf merged 1 commit into
wiedehopf:devfrom
chrislanzara:feature/sbs-category

Conversation

@chrislanzara

Copy link
Copy Markdown
Contributor

Summary

Rename the existing --devel=sbs_rssi runtime flag to be --devel=sbs_extra_fields and append the aircraft
category as field 24 of the SBS output, in addition to the existing RSSI information in field 23.

  • 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
  • Buffer allocation raised from 250 to 260 bytes when active

Usage

--devel=sbs_extra_fields

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.

@wiedehopf

Copy link
Copy Markdown
Owner

ok, can you rebase that into a single commit?

…S output

Adds a new devel flag, sbs_extra_fields, which appends two optional fields
to the SBS output:
  - Field 23: RSSI in dBFS (e.g. -27.3), empty if signal level unavailable
  - Field 24: aircraft category from ADS-B identification frames (metype 1-4),
    encoded as two hex chars (e.g. A3 = large fixed-wing, A7 = rotorcraft),
    empty if not yet received

The category is derived directly from the received ADS-B DF17 message
(((0x0E - metype) << 4) | mesub) — no external database lookup required.

Both fields are controlled by a single flag to keep the extension self-
contained. Field 23 is always emitted when the flag is active so that
field 24 remains at a fixed position, regardless of whether RSSI data is
available for a given message.

Buffer size is increased from 200 to 260 bytes when the flag is active.
@chrislanzara chrislanzara force-pushed the feature/sbs-category branch from 1bdd18f to c2c239d Compare June 8, 2026 19:42
@wiedehopf wiedehopf merged commit 0bfd047 into wiedehopf:dev Jun 8, 2026
1 check passed
@chrislanzara

Copy link
Copy Markdown
Contributor Author

Thanks!

@chrislanzara chrislanzara deleted the feature/sbs-category branch June 8, 2026 20:21
@wiedehopf

Copy link
Copy Markdown
Owner

with the rebasing it is just nicer. (would have been too for the previous PR but it's not that important)

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