Timestamps work.

This commit is contained in:
Nick Foster
2010-11-19 14:39:56 -08:00
parent eb18bdc308
commit 72248eaecf
3 changed files with 21 additions and 22 deletions

View File

@@ -31,14 +31,13 @@ class modes_output_print(modes_parse.modes_parse):
def parse(self, message):
[msgtype, shortdata, longdata, parity, ecc, reference, time_secs, time_frac] = message.split()
time_secs = long(time_secs)
time_frac = float(time_frac)
shortdata = long(shortdata, 16)
longdata = long(longdata, 16)
parity = long(parity, 16)
ecc = long(ecc, 16)
reference = float(reference)
time_secs = long(time_secs)
time_frac = float(time_frac)
msgtype = int(msgtype)
@@ -58,7 +57,7 @@ class modes_output_print(modes_parse.modes_parse):
output = "No handler for message type " + str(msgtype) + " from %x" % ecc
if reference == 0.0:
refdb = 0.0
refdb = -150.0
else:
refdb = 10.0*math.log10(reference)