commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r9808 - gnuradio/trunk/gr-usrp/src


From: matt
Subject: [Commit-gnuradio] r9808 - gnuradio/trunk/gr-usrp/src
Date: Sat, 18 Oct 2008 20:38:13 -0600 (MDT)

Author: matt
Date: 2008-10-18 20:38:12 -0600 (Sat, 18 Oct 2008)
New Revision: 9808

Modified:
   gnuradio/trunk/gr-usrp/src/db_tv_rx.py
Log:
this code was working, but how was unclear.  Now it still works, but should be 
clearer.


Modified: gnuradio/trunk/gr-usrp/src/db_tv_rx.py
===================================================================
--- gnuradio/trunk/gr-usrp/src/db_tv_rx.py      2008-10-18 23:33:12 UTC (rev 
9807)
+++ gnuradio/trunk/gr-usrp/src/db_tv_rx.py      2008-10-19 02:38:12 UTC (rev 
9808)
@@ -60,7 +60,7 @@
     return c
 
 class db_tv_rx(db_base.db_base):
-    def __init__(self, usrp, which, first_IF, second_IF):
+    def __init__(self, usrp, which, first_IF, second_IF, inverted):
         """
         Control Microtune 4937 based USRP daughterboard.
         
@@ -77,10 +77,10 @@
         self._second_IF = second_IF
         self._reference_divisor = 640
         self._fast_tuning = False
-        self._inverted = False      # FIXME get rid of this
+        self._inverted = inverted
         
-        g = self.gain_range()                  # initialize gain
-        self.set_gain(float(g[0]+g[1]) / 2)
+        g = self.gain_range()                  
+        self.set_gain(float(g[0]+g[1]) / 2)  # default gain is halfscale
 
         self.bypass_adc_buffers(False)
         
@@ -187,12 +187,12 @@
 
 # With MT4937DI5-3x7702 with second downconversion
 db_instantiator.add(usrp_dbid.TV_RX,
-                    lambda usrp, which : (db_tv_rx(usrp, which, 43.75e6, 
5.75e6),))
+                    lambda usrp, which : (db_tv_rx(usrp, which, 43.75e6, 
5.75e6, False),))
 
 # With MT4937DI5-3x8680, and 3x8769 without second downconversion
 db_instantiator.add(usrp_dbid.TV_RX_REV_2,
-                    lambda usrp, which : (db_tv_rx(usrp, which, 44e6, 20e6),))
+                    lambda usrp, which : (db_tv_rx(usrp, which, 44e6, 44e6, 
True),))
 
 # With MT4937DI5-3x7901 without second downconversion, basically the same as 
tvrx2
 db_instantiator.add(usrp_dbid.TV_RX_REV_3,
-                    lambda usrp, which : (db_tv_rx(usrp, which, 44e6, 20e6),))
+                    lambda usrp, which : (db_tv_rx(usrp, which, 44e6, 44e6, 
True),))





reply via email to

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