Change to python3, moved to argparse, adding a config file for defaults, adding logging

This commit is contained in:
nzkarit
2017-09-10 20:29:20 +12:00
parent dd857bcadc
commit c8e625f608
5 changed files with 87 additions and 21 deletions

View File

@@ -32,7 +32,7 @@ class ModeSLocation:
def encode_alt_modes(self, alt, bit13):
mbit = False
qbit = True
encalt = (int(alt) + 1000) / 25
encalt = int((int(alt) + 1000) / 25)
if bit13 is True:
tmp1 = (encalt & 0xfe0) << 2