Merge pull request #108 from dforsi/fix/typos

Fix typos
This commit is contained in:
Junzi Sun
2021-07-07 22:45:22 +02:00
committed by GitHub
3 changed files with 3 additions and 3 deletions

View File

@@ -73,7 +73,7 @@ cpdef str bin2hex(str binstr):
@cython.boundscheck(False) @cython.boundscheck(False)
cpdef unsigned char df(str msg): cpdef unsigned char df(str msg):
"""Decode Downlink Format vaule, bits 1 to 5.""" """Decode Downlink Format value, bits 1 to 5."""
cdef str dfbin = hex2bin(msg[:2]) cdef str dfbin = hex2bin(msg[:2])
# return min(bin2int(dfbin[0:5]), 24) # return min(bin2int(dfbin[0:5]), 24)
cdef long df = bin2int(dfbin[0:5]) cdef long df = bin2int(dfbin[0:5])

View File

@@ -22,7 +22,7 @@ def tell(msg: str) -> None:
tc = common.typecode(msg) tc = common.typecode(msg)
if 1 <= tc <= 4: # callsign if 1 <= tc <= 4: # callsign
callsign = adsb.callsign(msg) callsign = adsb.callsign(msg)
_print("Type", "Identitification and category") _print("Type", "Identification and category")
_print("Callsign:", callsign) _print("Callsign:", callsign)
if 5 <= tc <= 8: # surface position if 5 <= tc <= 8: # surface position

View File

@@ -1,7 +1,7 @@
# ------------------------------------------ # ------------------------------------------
# BDS 0,6 # BDS 0,6
# ADS-B TC=5-8 # ADS-B TC=5-8
# Surface movment # Surface movement
# ------------------------------------------ # ------------------------------------------
from pyModeS import common from pyModeS import common