From b35d84eb447f44b547d928e5741feab7660c39e6 Mon Sep 17 00:00:00 2001 From: Tom Rondeau <trondeau@vt.edu> Date: Wed, 19 Oct 2011 10:23:53 -0700 Subject: digital: fixed digital narrowband examples to set the sample rate based on the symbol rate, not the bitrate, of the modulation. --- gr-digital/examples/narrowband/benchmark_tx.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gr-digital/examples/narrowband/benchmark_tx.py') diff --git a/gr-digital/examples/narrowband/benchmark_tx.py b/gr-digital/examples/narrowband/benchmark_tx.py index cc077bb28e..25ed355daf 100755 --- a/gr-digital/examples/narrowband/benchmark_tx.py +++ b/gr-digital/examples/narrowband/benchmark_tx.py @@ -43,7 +43,11 @@ class my_top_block(gr.top_block): gr.top_block.__init__(self) if(options.tx_freq is not None): - self.sink = uhd_transmitter(options.args, options.bitrate, + # Work-around to get the modulation's bits_per_symbol + args = modulator.extract_kwargs_from_options(options) + symbol_rate = options.bitrate / modulator(**args).bits_per_symbol() + + self.sink = uhd_transmitter(options.args, symbol_rate, options.samples_per_symbol, options.tx_freq, options.tx_gain, options.antenna, options.verbose) -- cgit v1.2.3