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