diff options
author | Tom Rondeau | 2011-09-27 12:55:26 -0400 |
---|---|---|
committer | Tom Rondeau | 2011-09-27 12:57:31 -0400 |
commit | 12b5f9c37eebe694d34e0d3976393dad1e0f99d5 (patch) | |
tree | cead226639582fe436287d4873eb0f2ae3b0ee49 /gr-digital/examples/transmit_path.py | |
parent | 4fec8eba2eb3d362319c8e09bf370edaa10cd1b9 (diff) | |
download | gnuradio-12b5f9c37eebe694d34e0d3976393dad1e0f99d5.tar.gz gnuradio-12b5f9c37eebe694d34e0d3976393dad1e0f99d5.tar.bz2 gnuradio-12b5f9c37eebe694d34e0d3976393dad1e0f99d5.zip |
digital: bug fixes for digital mods. Adding fist pass at a UHD benchmark transit chain. Automatically selects the right samples/symbol and sample rate to achieve requested bitrate.
Diffstat (limited to 'gr-digital/examples/transmit_path.py')
-rw-r--r-- | gr-digital/examples/transmit_path.py | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/gr-digital/examples/transmit_path.py b/gr-digital/examples/transmit_path.py index f22ffb327..3af37f330 100644 --- a/gr-digital/examples/transmit_path.py +++ b/gr-digital/examples/transmit_path.py @@ -36,16 +36,15 @@ class transmit_path(gr.hier_block2): See below for what options should hold ''' gr.hier_block2.__init__(self, "transmit_path", - gr.io_signature(0, 0, 0), # Input signature - gr.io_signature(1, 1, gr.sizeof_gr_complex)) # Output signature + gr.io_signature(0,0,0), + gr.io_signature(1,1,gr.sizeof_gr_complex)) options = copy.copy(options) # make a copy so we can destructively modify - self._verbose = options.verbose - self._tx_amplitude = options.tx_amplitude # digital amplitude sent to USRP - self._bitrate = options.bitrate # desired bit rate - - self._modulator_class = modulator_class # the modulator_class we are using + self._verbose = options.verbose + self._tx_amplitude = options.tx_amplitude # digital amplitude sent to USRP + self._bitrate = options.bitrate # desired bit rate + self._modulator_class = modulator_class # the modulator_class we are using # Get mod_kwargs mod_kwargs = self._modulator_class.extract_kwargs_from_options(options) @@ -103,7 +102,7 @@ class transmit_path(gr.hier_block2): help="set transmitter digital amplitude: 0 <= AMPL < 1 [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 file (CAUTION: lots of data)") |