junzis / pyModeS

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

Update bds61.py #119

Closed Flyer350 closed 2 years ago

Flyer350 commented 2 years ago

Fix the Mode A decoder. The ZERO is already part of the binary data inside the message and does not need to be added.

See ED-102A, 2.2.3.2.7.8.1.2 b. Starting with ―ME‖ bit 12, the code sequence shall be C1, A1, C2, A2, C4, A4, ZERO, B1, D1, B2, D2, B4, D4.

junzis commented 2 years ago

Thank you very much @Flyer350 for spotting this!