commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r3489 - gnuradio/trunk/gr-radio-astronomy/src/python


From: mleech
Subject: [Commit-gnuradio] r3489 - gnuradio/trunk/gr-radio-astronomy/src/python
Date: Mon, 4 Sep 2006 22:13:03 -0600 (MDT)

Author: mleech
Date: 2006-09-04 22:13:03 -0600 (Mon, 04 Sep 2006)
New Revision: 3489

Modified:
   gnuradio/trunk/gr-radio-astronomy/src/python/usrp_psr_receiver.py
Log:
Turned on baseband filtering 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-05 04:12:48 UTC (rev 3488)
+++ gnuradio/trunk/gr-radio-astronomy/src/python/usrp_psr_receiver.py   
2006-09-05 04:13:03 UTC (rev 3489)
@@ -30,6 +30,7 @@
 #
 #
 from gnuradio import gr, gru, blks, audio
+import usrp_dbid
 from gnuradio import usrp, optfir
 from gnuradio import eng_notation
 from gnuradio.eng_option import eng_option
@@ -222,6 +223,7 @@
 
         # determine the daughterboard subdevice we're using
         self.subdev = usrp.selected_subdev(self.u, options.rx_subdev_spec)
+        self.cardtype = self.u.daughterboard_id(0)
 
         # Compute raw input rate
         input_rate = self.u.adc_freq() / self.u.decim_rate()
@@ -230,6 +232,12 @@
         self.bw = input_rate
 
         #
+        # 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)
+
+        #
         # We use this as a crude volume control for the audio output
         #
         self.volume = gr.multiply_const_ff(10**(-1))





reply via email to

[Prev in Thread] Current Thread [Next in Thread]