diff options
author | mleech | 2006-09-18 23:28:22 +0000 |
---|---|---|
committer | mleech | 2006-09-18 23:28:22 +0000 |
commit | 8fd1bbd2be7a5d6f1f160e1ac5f64faacab6a7b2 (patch) | |
tree | d8b9cc43a04389e281e7aec2023d13e717eafb4c /gr-radio-astronomy/src/python | |
parent | 7c36abd16c12279fbfb29c30662cd3e96f8252e5 (diff) | |
download | gnuradio-8fd1bbd2be7a5d6f1f160e1ac5f64faacab6a7b2.tar.gz gnuradio-8fd1bbd2be7a5d6f1f160e1ac5f64faacab6a7b2.tar.bz2 gnuradio-8fd1bbd2be7a5d6f1f160e1ac5f64faacab6a7b2.zip |
Updated the way the LPF bandwidth is set on daughtercard, if DBS_RX.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@3571 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-radio-astronomy/src/python')
-rwxr-xr-x | gr-radio-astronomy/src/python/usrp_psr_receiver.py | 11 | ||||
-rwxr-xr-x | gr-radio-astronomy/src/python/usrp_ra_receiver.py | 9 |
2 files changed, 13 insertions, 7 deletions
diff --git a/gr-radio-astronomy/src/python/usrp_psr_receiver.py b/gr-radio-astronomy/src/python/usrp_psr_receiver.py index 2f45b4d24..1aeef8fd9 100755 --- a/gr-radio-astronomy/src/python/usrp_psr_receiver.py +++ b/gr-radio-astronomy/src/python/usrp_psr_receiver.py @@ -16,8 +16,8 @@ # # You should have received a copy of the GNU General Public License # along with GNU Radio; see the file COPYING. If not, write to -# the Free Software Foundation, Inc., 51 Franklin Street, -# Boston, MA 02110-1301, USA. +# the Free Software Foundation, Inc., 59 Temple Place - Suite 330, +# Boston, MA 02111-1307, USA. # @@ -219,7 +219,7 @@ class app_flow_graph(stdgui.gui_flow_graph): self.decim = int(decim) # So that we can view 4 pulses in the pulse viewer window - FOLD_MULT=4 + FOLD_MULT=1 # determine the daughterboard subdevice we're using self.subdev = usrp.selected_subdev(self.u, options.rx_subdev_spec) @@ -235,7 +235,10 @@ class app_flow_graph(stdgui.gui_flow_graph): # Set baseband filter bandwidth if DBS_RX: # if self.cardtype == usrp_dbid.DBS_RX: - self.subdev.set_bw((self.u.adc_freq() / self.u.decim_rate())/2) + lbw = input_rate / 2 + if lbw < 1.0e6: + lbw = 1.0e6 + self.subdev.set_bw(lbw) # # We use this as a crude volume control for the audio output diff --git a/gr-radio-astronomy/src/python/usrp_ra_receiver.py b/gr-radio-astronomy/src/python/usrp_ra_receiver.py index 551378786..de7e747dd 100755 --- a/gr-radio-astronomy/src/python/usrp_ra_receiver.py +++ b/gr-radio-astronomy/src/python/usrp_ra_receiver.py @@ -16,8 +16,8 @@ # # You should have received a copy of the GNU General Public License # along with GNU Radio; see the file COPYING. If not, write to -# the Free Software Foundation, Inc., 51 Franklin Street, -# Boston, MA 02110-1301, USA. +# the Free Software Foundation, Inc., 59 Temple Place - Suite 330, +# Boston, MA 02111-1307, USA. # from gnuradio import gr, gru @@ -290,7 +290,10 @@ class app_flow_graph(stdgui.gui_flow_graph): # Set analog baseband filtering, if DBS_RX if self.cardtype == usrp_dbid.DBS_RX: - self.subdev.set_bw((self.u.adc_freq() / self.u.decim_rate())/2) + lbw = (self.u.adc_freq() / self.u.decim_rate()) / 2 + if lbw < 1.0e6: + lbw = 1.0e6 + self.subdev.set_bw(lbw) # Tell calibrator our declination as well calib_set_decln(self.decln) |