summaryrefslogtreecommitdiff
path: root/gssm/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2008-11-25 15:03:14 +0530
committerHarald Welte <laforge@gnumonks.org>2010-06-30 13:02:55 +0200
commit714da0d58ec57c4ffbccc74c4b43eaf1d9eaaea6 (patch)
tree03dd3b4da73b74e3055d84697b691e095d533b5d /gssm/src
parent69103cef228fa3430d33233332a8329584971570 (diff)
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)
Diffstat (limited to 'gssm/src')
-rwxr-xr-xgssm/src/python/gssm_usrp.py8
1 files changed, 4 insertions, 4 deletions
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,))
personal git repositories of Harald Welte. Your mileage may vary