Merge pull request #119 from Flyer350/patch-8
fix bug in squawk decoding for BDS61
This commit is contained in:
commit
00f04a8886
@ -77,7 +77,7 @@ def emergency_squawk(msg: str) -> str:
|
||||
msgbin = common.hex2bin(msg)
|
||||
|
||||
# construct the 13 bits Mode A ID code
|
||||
idcode = msgbin[43:49] + "0" + msgbin[49:55]
|
||||
idcode = msgbin[43:56]
|
||||
|
||||
squawk = common.squawk(idcode)
|
||||
return squawk
|
||||
|
Loading…
Reference in New Issue
Block a user