commit-gnuradio
[Top][All Lists]
Advanced

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

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


From: mleech
Subject: [Commit-gnuradio] r10629 - gnuradio/trunk/gr-radio-astronomy/src/python
Date: Mon, 16 Mar 2009 20:41:37 -0600 (MDT)

Author: mleech
Date: 2009-03-16 20:41:36 -0600 (Mon, 16 Mar 2009)
New Revision: 10629

Modified:
   gnuradio/trunk/gr-radio-astronomy/src/python/usrp_ra_receiver.py
Log:
Removed special-case for BASIC_RX



Modified: gnuradio/trunk/gr-radio-astronomy/src/python/usrp_ra_receiver.py
===================================================================
--- gnuradio/trunk/gr-radio-astronomy/src/python/usrp_ra_receiver.py    
2009-03-17 01:31:42 UTC (rev 10628)
+++ gnuradio/trunk/gr-radio-astronomy/src/python/usrp_ra_receiver.py    
2009-03-17 02:41:36 UTC (rev 10629)
@@ -599,24 +599,12 @@
                Set the center frequency we're interested in.
 
                @param target_freq: frequency in Hz
-               @rypte: bool
 
-               Tuning is a two step process.  First we ask the front-end to
-               tune as close to the desired frequency as it can.  Then we use
-               the result of that operation and our target_frequency to
-               determine the value for the digital down converter.
                """
                #
-               # Everything except BASIC_RX should support usrp.tune()
                #
-               if not (self.cardtype == usrp_dbid.BASIC_RX):
-                       r = usrp.tune(self.u, self.subdev[0].which(), 
self.subdev[0], target_freq)
-                       r = usrp.tune(self.u, self.subdev[1].which(), 
self.subdev[1], target_freq)
-               else:
-                       r = self.u.set_rx_freq(0, target_freq)
-                       f = self.u.rx_freq(0)
-                       if abs(f-target_freq) > 2.0e3:
-                               r = 0
+               r = usrp.tune(self.u, self.subdev[0].which(), self.subdev[0], 
target_freq)
+               r = usrp.tune(self.u, self.subdev[1].which(), self.subdev[1], 
target_freq)
                if r:
                        self.myform['freq'].set_value(target_freq)         # 
update displayed value
                        #
@@ -628,9 +616,8 @@
                        self.centerfreq = target_freq
                        self.observing -= delta
                        self.scope.set_baseband_freq (self.observing)
-                       if not self.cardtype == usrp_dbid.BASIC_RX:
-                               
self.myform['baseband'].set_value(r.baseband_freq)
-                               self.myform['ddc'].set_value(r.dxc_freq)
+                       self.myform['baseband'].set_value(r.baseband_freq)
+                       self.myform['ddc'].set_value(r.dxc_freq)
                        
                        if (self.use_notches):
                                self.compute_notch_taps(self.notches)





reply via email to

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