Timestamps work.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user