junzis / pyModeS

Python decoder for Mode S and ADS-B signals
GNU General Public License v3.0
546 stars 153 forks source link

Add support and tests for BDS 6,1 emergency messages #69

Closed tuftedocelot closed 4 years ago

tuftedocelot commented 4 years ago

Hello! Here's a start at implementing BDS 6,1 partially. ACAS RA message support is next on the to-do list, but this one is nice and small

junzis commented 4 years ago

Thanks for the PR! This has been on my list for a long time.

A quick question: Is the emergency squawk part of subtype 1 message or subtype 2 message?

I will have a further look at the code.

tuftedocelot commented 4 years ago

Subtype 1 has the squawk code. Subtype 2 after the first 8 bits (TC=28, Subtype=2) is actually the same structure as BDS 3,0 (ACAS RA)

My rough plan is to put the ACAS RA parsing into acas.py and then import those same functions into bds30.py and bds61.py post-merge. Thoughts?