junzis / pyModeS

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

TAS cannot be determined for aircraft not transmitting heading information #93

Closed aqagha closed 2 years ago

aqagha commented 3 years ago

Hello,

I recently encountered and aircraft transmitting TAS information in mb[25:35] with an all-zero mb[14:24]. TAS determination was blocked by this statement.

Would it be logical to move this statement to the subtype check beneath it?

https://github.com/junzis/pyModeS/blob/89e67fae3185e3e202b9ba680ccfb0094527ed3e/pyModeS/decoder/bds/bds09.py#L38

junzis commented 3 years ago

Thank you @aqagha. This has been fixed in the latest commit. Let me know if it works for you.

aqagha commented 3 years ago

Hello,

It has taken me a while to pick up a transmission similar to the one before. I've received a few messages which are breaking at line 69.

One troublesome message: '8D7785649940000018A00054AA87'.

What could be the reason behind aircraft sending such messages only encoding vs?

Thank you