diff options
author | Tom Rondeau | 2011-09-27 16:59:41 -0400 |
---|---|---|
committer | Tom Rondeau | 2011-09-27 16:59:41 -0400 |
commit | 199487167956a6149d1a895397b72d2525b39742 (patch) | |
tree | 25d8fcf6f23d31967dea66eeef5ecf0244c76d4b /gr-digital/examples/receive_path.py | |
parent | b6cd070a9b6422672409bfb43232db265a31998b (diff) | |
download | gnuradio-199487167956a6149d1a895397b72d2525b39742.tar.gz gnuradio-199487167956a6149d1a895397b72d2525b39742.tar.bz2 gnuradio-199487167956a6149d1a895397b72d2525b39742.zip |
digital: fixed up benchmark codes to handle receive, too. Over-the-air tests worked.
Diffstat (limited to 'gr-digital/examples/receive_path.py')
-rw-r--r-- | gr-digital/examples/receive_path.py | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/gr-digital/examples/receive_path.py b/gr-digital/examples/receive_path.py index dd8eb1a0d..1c5e58963 100644 --- a/gr-digital/examples/receive_path.py +++ b/gr-digital/examples/receive_path.py @@ -34,17 +34,16 @@ import sys class receive_path(gr.hier_block2): def __init__(self, demod_class, rx_callback, options): gr.hier_block2.__init__(self, "receive_path", - gr.io_signature(1, 1, gr.sizeof_gr_complex), # Input signature - gr.io_signature(0, 0, 0)) # Output signature - + gr.io_signature(1, 1, gr.sizeof_gr_complex), + gr.io_signature(0, 0, 0)) options = copy.copy(options) # make a copy so we can destructively modify - self._verbose = options.verbose - self._bitrate = options.bitrate # desired bit rate + self._verbose = options.verbose + self._bitrate = options.bitrate # desired bit rate - self._rx_callback = rx_callback # this callback is fired when there's a packet available - self._demod_class = demod_class # the demodulator_class we're using + self._rx_callback = rx_callback # this callback is fired when a packet arrives + self._demod_class = demod_class # the demodulator_class we're using # Get demod_kwargs demod_kwargs = self._demod_class.extract_kwargs_from_options(options) @@ -126,7 +125,7 @@ class receive_path(gr.hier_block2): normal.add_option("-r", "--bitrate", type="eng_float", default=100e3, help="specify bitrate [default=%default].") normal.add_option("-v", "--verbose", action="store_true", default=False) - expert.add_option("-S", "--samples-per-symbol", type="float", default=None, + expert.add_option("-S", "--samples-per-symbol", type="float", default=2, help="set samples/symbol [default=%default]") expert.add_option("", "--log", action="store_true", default=False, help="Log all parts of flow graph to files (CAUTION: lots of data)") |