Fix iterator in TCAS resolution advisories.
This commit is contained in:
+4
-4
@@ -397,13 +397,13 @@ class parse:
|
|||||||
ara = data["ara"]
|
ara = data["ara"]
|
||||||
#check to see which bits are set
|
#check to see which bits are set
|
||||||
resolutions = ""
|
resolutions = ""
|
||||||
for bit, name in ara_bits:
|
for bit in ara_bits:
|
||||||
if ara & (1 << (54-bit)):
|
if ara & (1 << (54-bit)):
|
||||||
resolutions += " " + name
|
resolutions += " " + ara_bits[bit]
|
||||||
complements = ""
|
complements = ""
|
||||||
for bit, name in rac_bits:
|
for bit in rac_bits:
|
||||||
if rac & (1 << (58-bit)):
|
if rac & (1 << (58-bit)):
|
||||||
complements += " " + name
|
complements += " " + rac_bits[bit]
|
||||||
return (resolutions, complements)
|
return (resolutions, complements)
|
||||||
|
|
||||||
#rat is 1 if resolution advisory terminated <18s ago
|
#rat is 1 if resolution advisory terminated <18s ago
|
||||||
|
|||||||
Reference in New Issue
Block a user