From b0a71717f0e4f491ee072544bed22df3e4773800 Mon Sep 17 00:00:00 2001 From: junzis Date: Mon, 24 Jul 2017 16:59:46 +0200 Subject: [PATCH] work on altitude code --- pyModeS/modes_common.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pyModeS/modes_common.py b/pyModeS/modes_common.py index 1973915..b56e3c0 100644 --- a/pyModeS/modes_common.py +++ b/pyModeS/modes_common.py @@ -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