From f0b913fe3531403fc47c0709d0005279aa786aed Mon Sep 17 00:00:00 2001 From: Nick Foster Date: Fri, 6 May 2011 10:39:43 +0200 Subject: [PATCH] make parser invocations match new prototype --- src/python/modes_sbs1.py | 2 +- src/python/modes_sql.py | 2 +- src/python/uhd_modes.py | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/python/modes_sbs1.py b/src/python/modes_sbs1.py index cd8eb93..c75508c 100644 --- a/src/python/modes_sbs1.py +++ b/src/python/modes_sbs1.py @@ -59,7 +59,7 @@ class modes_output_sbs1(modes_parse.modes_parse): #assembles a SBS-1-style output string from the received message #this version ignores anything that isn't Type 17 for now, because we just don't care - [msgtype, shortdata, longdata, parity, ecc, reference] = message.split() + [msgtype, shortdata, longdata, parity, ecc, reference, time_secs, time_frac] = message.split() shortdata = long(shortdata, 16) longdata = long(longdata, 16) diff --git a/src/python/modes_sql.py b/src/python/modes_sql.py index 64accf1..6e188b9 100644 --- a/src/python/modes_sql.py +++ b/src/python/modes_sql.py @@ -68,7 +68,7 @@ class modes_output_sql(modes_parse.modes_parse): def make_insert_query(self, message): #assembles a SQL query tailored to our database #this version ignores anything that isn't Type 17 for now, because we just don't care - [msgtype, shortdata, longdata, parity, ecc, reference] = message.split() + [msgtype, shortdata, longdata, parity, ecc, reference, time_secs, time_frac] = message.split() shortdata = long(shortdata, 16) longdata = long(longdata, 16) diff --git a/src/python/uhd_modes.py b/src/python/uhd_modes.py index 5ce65e9..fd0299c 100755 --- a/src/python/uhd_modes.py +++ b/src/python/uhd_modes.py @@ -19,7 +19,8 @@ # Boston, MA 02110-1301, USA. # -my_position = [37.76225, -122.44254] +#my_position = [37.76225, -122.44254] +my_position = [37.409066,-122.077836] from gnuradio import gr, gru, optfir, eng_notation, blks2, air from gnuradio import uhd