work on altitude code

This commit is contained in:
junzis 2017-07-24 16:59:46 +02:00
parent 25e5a4e412
commit b0a71717f0

View File

@ -24,7 +24,8 @@ def icao(msg):
def idcode(msg):
"""Computes identity (squawk code) from DF5 or DF21 message, bit 20-32
"""Computes identity (squawk code) from DF5 or DF21 message, bit 20-32.
credit: @fbyrkjeland
Args:
msg (String): 28 bytes hexadecimal message string
@ -61,7 +62,8 @@ def idcode(msg):
def altcode(msg):
"""Computes the altitude from DF4 or DF20 message, bit 20-32
"""Computes the altitude from DF4 or DF20 message, bit 20-32.
credit: @fbyrkjeland
Args:
msg (String): 28 bytes hexadecimal message string