minor update

This commit is contained in:
Junzi Sun 2018-04-04 09:46:05 +02:00
parent 362b92de7a
commit 7653b2459d
2 changed files with 2 additions and 4 deletions

View File

@ -46,7 +46,7 @@ def is17(msg):
# basic BDS codes for ADS-B shall be supported
# assuming ADS-B out is installed (2017EU/2020US mandate)
if not set(['BDS05', 'BDS06', 'BDS09', 'BDS20']).issubset(caps):
if not set(['BDS05', 'BDS06', 'BDS08', 'BDS09', 'BDS20']).issubset(caps):
return False
return True

View File

@ -36,9 +36,7 @@ def is20(msg):
d = hex2bin(data(msg))
# status bit 1, 14, and 27
if bin2int(d[0:4]) != 2 or bin2int(d[4:8]) != 0:
if d[0:8] != '00100000':
return False
cs = cs20(msg)