minor update
This commit is contained in:
parent
362b92de7a
commit
7653b2459d
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user