From 714da0d58ec57c4ffbccc74c4b43eaf1d9eaaea6 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Tue, 25 Nov 2008 15:03:14 +0530 Subject: Migration of flow_graph to top_block Initial patch to make gsm-tvoid and gssm work with current gnuradio svn (which has various API changes) --- gssm/src/python/gssm_usrp.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gssm/src') diff --git a/gssm/src/python/gssm_usrp.py b/gssm/src/python/gssm_usrp.py index f8ea583..4c48c88 100755 --- a/gssm/src/python/gssm_usrp.py +++ b/gssm/src/python/gssm_usrp.py @@ -2,8 +2,8 @@ # $Id: gssm_usrp.py,v 1.2 2007-07-07 16:31:44 jl Exp $ -from gnuradio import gr, usrp, db_dbs_rx, blks -from gnuradio.blksimpl import gmsk +from gnuradio import gr, usrp, db_dbs_rx, blks2 +from gnuradio.blks2impl import gmsk from usrpm import usrp_dbid import gssm import sys @@ -21,9 +21,9 @@ c0 = 875.4e6 # experimental constant default_usrp_offset = 12e3 -class gssm_flow_graph(gr.flow_graph): +class gssm_flow_graph(gr.top_block): def __init__(self, usrp_offset): - gr.flow_graph.__init__(self) + gr.top_block.__init__(self) u = usrp.source_c(decim_rate = decim) s = usrp.pick_subdev(u, (usrp_dbid.DBS_RX,)) -- cgit v1.2.3