Modified to work with proposed gr-uhd tags timestamp interface. Probably going to change.

This commit is contained in:
Nick Foster
2011-05-16 18:06:54 -07:00
parent 462b7fbed3
commit 773ddf8dec
3 changed files with 18 additions and 26 deletions

View File

@@ -30,14 +30,13 @@ class modes_output_print(modes_parse.modes_parse):
modes_parse.modes_parse.__init__(self, mypos)
def parse(self, message):
[msgtype, shortdata, longdata, parity, ecc, reference, time_secs, time_frac] = message.split()
[msgtype, shortdata, longdata, parity, ecc, reference, timestamp] = message.split()
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)
timestamp = float(timestamp)
msgtype = int(msgtype)
@@ -62,7 +61,7 @@ class modes_output_print(modes_parse.modes_parse):
refdb = 10.0*math.log10(reference)
if output is not None:
output = "(%.0f %u %f) " % (refdb, time_secs, time_frac) + output
output = "(%.0f %f) " % (refdb, timestamp) + output
print output
def print0(self, shortdata, parity, ecc):