make parser invocations match new prototype

This commit is contained in:
Nick Foster 2011-05-06 10:39:43 +02:00
parent 756ccc8548
commit f0b913fe35
3 changed files with 4 additions and 3 deletions

View File

@ -59,7 +59,7 @@ class modes_output_sbs1(modes_parse.modes_parse):
#assembles a SBS-1-style output string from the received message #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 #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) shortdata = long(shortdata, 16)
longdata = long(longdata, 16) longdata = long(longdata, 16)

View File

@ -68,7 +68,7 @@ class modes_output_sql(modes_parse.modes_parse):
def make_insert_query(self, message): def make_insert_query(self, message):
#assembles a SQL query tailored to our database #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 #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) shortdata = long(shortdata, 16)
longdata = long(longdata, 16) longdata = long(longdata, 16)

View File

@ -19,7 +19,8 @@
# Boston, MA 02110-1301, USA. # 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 gr, gru, optfir, eng_notation, blks2, air
from gnuradio import uhd from gnuradio import uhd