[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r3571 - gnuradio/trunk/gr-radio-astronomy/src/python
From: |
mleech |
Subject: |
[Commit-gnuradio] r3571 - gnuradio/trunk/gr-radio-astronomy/src/python |
Date: |
Mon, 18 Sep 2006 17:28:23 -0600 (MDT) |
Author: mleech
Date: 2006-09-18 17:28:22 -0600 (Mon, 18 Sep 2006)
New Revision: 3571
Modified:
gnuradio/trunk/gr-radio-astronomy/src/python/usrp_psr_receiver.py
gnuradio/trunk/gr-radio-astronomy/src/python/usrp_ra_receiver.py
Log:
Updated the way the LPF bandwidth is set on daughtercard, if DBS_RX.
Modified: gnuradio/trunk/gr-radio-astronomy/src/python/usrp_psr_receiver.py
===================================================================
--- gnuradio/trunk/gr-radio-astronomy/src/python/usrp_psr_receiver.py
2006-09-18 23:20:45 UTC (rev 3570)
+++ gnuradio/trunk/gr-radio-astronomy/src/python/usrp_psr_receiver.py
2006-09-18 23:28:22 UTC (rev 3571)
@@ -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 @@
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 @@
# 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
Modified: gnuradio/trunk/gr-radio-astronomy/src/python/usrp_ra_receiver.py
===================================================================
--- gnuradio/trunk/gr-radio-astronomy/src/python/usrp_ra_receiver.py
2006-09-18 23:20:45 UTC (rev 3570)
+++ gnuradio/trunk/gr-radio-astronomy/src/python/usrp_ra_receiver.py
2006-09-18 23:28:22 UTC (rev 3571)
@@ -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 @@
# 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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r3571 - gnuradio/trunk/gr-radio-astronomy/src/python,
mleech <=