Source code for pyModeS.decoder.uplink

from pyModeS import common





[docs]def uf(msg): """Decode Uplink Format value, bits 1 to 5.""" ufbin = common.hex2bin(msg[:2]) return min(common.bin2int(ufbin[0:5]), 24)