summaryrefslogtreecommitdiff
path: root/gr-shd
diff options
context:
space:
mode:
authorTom Rondeau2011-12-14 22:23:50 -0500
committerTom Rondeau2011-12-14 22:23:50 -0500
commite4cf0d1b51b7bc9843e76e8d6e35097664b6f2b3 (patch)
treef9a6452c60bd030b8f9b1d198abf304d78b67d0e /gr-shd
parentaa0cca173047fc268eb3acfcb7cc8cbb2d8c7581 (diff)
downloadgnuradio-e4cf0d1b51b7bc9843e76e8d6e35097664b6f2b3.tar.gz
gnuradio-e4cf0d1b51b7bc9843e76e8d6e35097664b6f2b3.tar.bz2
gnuradio-e4cf0d1b51b7bc9843e76e8d6e35097664b6f2b3.zip
uhd: fixes to instantiating UHD devices to set the antenna and subdevice properly (patch from Sam Bretheim).
Diffstat (limited to 'gr-shd')
-rwxr-xr-xgr-shd/apps/shd_fft.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gr-shd/apps/shd_fft.py b/gr-shd/apps/shd_fft.py
index 81e84d383..46832784d 100755
--- a/gr-shd/apps/shd_fft.py
+++ b/gr-shd/apps/shd_fft.py
@@ -71,6 +71,9 @@ class app_top_block(stdgui2.std_top_block):
io_type=shd.io_type.COMPLEX_FLOAT32,
num_channels=1)
+ if(options.antenna):
+ self.src.set_antenna(options.antenna, 0)
+
self.src.set_samp_rate(options.samp_rate)
input_rate = self.src.get_samp_rate()
@@ -112,9 +115,6 @@ class app_top_block(stdgui2.std_top_block):
self.set_gain(options.gain)
- if(options.antenna):
- self.src.set_antenna(options.antenna, 0)
-
if self.show_debug_info:
self.myform['samprate'].set_value(self.src.get_samp_rate())
self.myform['fs@gbe'].set_value(input_rate)