summaryrefslogtreecommitdiff
path: root/gr-digital/examples/ofdm/benchmark_add_channel.py
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2012-08-20 19:54:05 -0400
committerTom Rondeau <trondeau@vt.edu>2012-08-20 19:54:05 -0400
commite7de8a7b826d5cbd9c9358d96ab44d115fa53524 (patch)
treeda66361fdfad62fbb62cb09cb0317f2351b2965c /gr-digital/examples/ofdm/benchmark_add_channel.py
parenta8f91e9cca303d13fa153e8995fe8d093e3217ab (diff)
digital: fixed up digital blocks to make examples work again.
Added GMSK loopback to test that block, too. Switched a couple over to qtgui instead of wx.
Diffstat (limited to 'gr-digital/examples/ofdm/benchmark_add_channel.py')
-rwxr-xr-xgr-digital/examples/ofdm/benchmark_add_channel.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-digital/examples/ofdm/benchmark_add_channel.py b/gr-digital/examples/ofdm/benchmark_add_channel.py
index 01776d209..77862e753 100755
--- a/gr-digital/examples/ofdm/benchmark_add_channel.py
+++ b/gr-digital/examples/ofdm/benchmark_add_channel.py
@@ -20,7 +20,7 @@
# Boston, MA 02110-1301, USA.
#
-from gnuradio import gr
+from gnuradio import gr, filter
from gnuradio import eng_notation
from gnuradio.eng_option import eng_option
from optparse import OptionParser
@@ -45,7 +45,7 @@ class my_top_block(gr.top_block):
self.src = gr.file_source(gr.sizeof_gr_complex, ifile)
#self.throttle = gr.throttle(gr.sizeof_gr_complex, options.sample_rate)
- self.channel = gr.channel_model(noise_voltage, frequency_offset,
+ self.channel = filter.channel_model(noise_voltage, frequency_offset,
time_offset, noise_seed=random.randint(0,100000))
self.phase = gr.multiply_const_cc(complex(math.cos(phase_offset),
math.sin(phase_offset)))