Callsign from command line

This commit is contained in:
nzkarit
2019-09-15 15:07:25 +12:00
parent 8ed4cbf9b9
commit 6d35198201
3 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -155,8 +155,10 @@ class ModeS:
return dfvel
#From https://github.com/jaywilhelm/ADSB-Out_Python on 2019-08-25
# TODO the callsign must be 8
# TODO the callsign must be 8
def callsign_encode(self, ca, icao, csname):
#Pad the callsign to be 8 characters
csname = csname.ljust(8, '_')
if len(csname) > 8 or len(csname) <= 0:
print ("Name length error")
return null