Merge pull request #45 from hegrin-cz/master

Corrected ADS-B emitter category parsing.
pull/48/head
Junzi Sun 5 years ago committed by GitHub
commit b723374337
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -36,8 +36,9 @@ def category(msg):
if common.typecode(msg) < 1 or common.typecode(msg) > 4:
raise RuntimeError("%s: Not a identification message" % msg)
msgbin = common.hex2bin(msg)
return common.bin2int(msgbin[5:8])
msgbin = common.hex2bin(msg)
mebin = msgbin[32:87]
return common.bin2int(mebin[5:8])
def callsign(msg):

Loading…
Cancel
Save