diff options
author | Tom Rondeau <trondeau@vt.edu> | 2012-11-05 22:50:46 -0500 |
---|---|---|
committer | Tom Rondeau <trondeau@vt.edu> | 2012-11-05 22:50:46 -0500 |
commit | a99beca4b60869f7d8ae1743ba4d72fd71461ad0 (patch) | |
tree | 2a8d4f0630d5fb7767591dff539ff71f7fc329c7 /gr-digital | |
parent | 3ca7aee9244a80aa5f2d65cace16be40d4bf539f (diff) | |
parent | 0617e68d5f6406e9f18580823e3530b2b21d017a (diff) |
Merge branch 'next' into next_analog
Diffstat (limited to 'gr-digital')
-rwxr-xr-x | gr-digital/examples/narrowband/benchmark_add_channel.py | 3 | ||||
-rwxr-xr-x | gr-digital/examples/ofdm/benchmark_add_channel.py | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/gr-digital/examples/narrowband/benchmark_add_channel.py b/gr-digital/examples/narrowband/benchmark_add_channel.py index 8f2e544fdb..0ee0058059 100755 --- a/gr-digital/examples/narrowband/benchmark_add_channel.py +++ b/gr-digital/examples/narrowband/benchmark_add_channel.py @@ -43,8 +43,9 @@ 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 = filter.channel_model(noise_voltage, frequency_offset, - time_offset, noise_seed=random.randint(0,100000)) + time_offset, noise_seed=-random.randint(0,100000)) self.phase = gr.multiply_const_cc(complex(math.cos(phase_offset), math.sin(phase_offset))) self.snk = gr.file_sink(gr.sizeof_gr_complex, ofile) diff --git a/gr-digital/examples/ofdm/benchmark_add_channel.py b/gr-digital/examples/ofdm/benchmark_add_channel.py index 77862e753f..5c7a3ae501 100755 --- a/gr-digital/examples/ofdm/benchmark_add_channel.py +++ b/gr-digital/examples/ofdm/benchmark_add_channel.py @@ -45,8 +45,9 @@ 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 = filter.channel_model(noise_voltage, frequency_offset, - time_offset, noise_seed=random.randint(0,100000)) + time_offset, noise_seed=-random.randint(0,100000)) self.phase = gr.multiply_const_cc(complex(math.cos(phase_offset), math.sin(phase_offset))) self.snk = gr.file_sink(gr.sizeof_gr_complex, ofile) |