summaryrefslogtreecommitdiff
path: root/gr-radio-astronomy/src/python/usrp_ra_receiver.py
diff options
context:
space:
mode:
authormleech2007-05-29 11:37:08 +0000
committermleech2007-05-29 11:37:08 +0000
commit25c5610e7e74bc875a70aa091e11d8c89d4b4ff1 (patch)
tree8fff519dad2bda09fb50bc16552566f1406d0060 /gr-radio-astronomy/src/python/usrp_ra_receiver.py
parent8e8b38dd844ded1017bff0ca79622e497ed7eabf (diff)
downloadgnuradio-25c5610e7e74bc875a70aa091e11d8c89d4b4ff1.tar.gz
gnuradio-25c5610e7e74bc875a70aa091e11d8c89d4b4ff1.tar.bz2
gnuradio-25c5610e7e74bc875a70aa091e11d8c89d4b4ff1.zip
Changed detector chain in usrp_psr_receiver to use complex_to_mag_squared.
Changed usrp_ra_receiver to use dbid() method to determine which card type is being used. git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@5564 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-radio-astronomy/src/python/usrp_ra_receiver.py')
-rwxr-xr-xgr-radio-astronomy/src/python/usrp_ra_receiver.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-radio-astronomy/src/python/usrp_ra_receiver.py b/gr-radio-astronomy/src/python/usrp_ra_receiver.py
index 3f9ff85ba..9e1097547 100755
--- a/gr-radio-astronomy/src/python/usrp_ra_receiver.py
+++ b/gr-radio-astronomy/src/python/usrp_ra_receiver.py
@@ -168,12 +168,12 @@ class app_flow_graph(stdgui.gui_flow_graph):
self.u = usrp.source_c(decim_rate=options.decim)
self.u.set_mux(usrp.determine_rx_mux_value(self.u, options.rx_subdev_spec))
- self.cardtype = self.u.daughterboard_id(0)
# Set initial declination
self.decln = options.decln
# determine the daughterboard subdevice we're using
self.subdev = usrp.selected_subdev(self.u, options.rx_subdev_spec)
+ self.cardtype = self.subdev.dbid()
input_rate = self.u.adc_freq() / self.u.decim_rate()
@@ -426,7 +426,7 @@ class app_flow_graph(stdgui.gui_flow_graph):
self.myform['dbname'].set_value(self.subdev.name())
# Set analog baseband filtering, if DBS_RX
- if self.cardtype == usrp_dbid.DBS_RX:
+ if self.cardtype in (usrp_dbid.DBS_RX, usrp_dbid.DBS_RX_2_1):
lbw = (self.u.adc_freq() / self.u.decim_rate()) / 2
if lbw < 1.0e6:
lbw = 1.0e6