minor updates
authormatt <matt@221aa14e-8319-0410-a670-987f0aec2ac5>
Fri, 30 Nov 2007 19:33:45 +0000 (19:33 +0000)
committermatt <matt@221aa14e-8319-0410-a670-987f0aec2ac5>
Fri, 30 Nov 2007 19:33:45 +0000 (19:33 +0000)
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@7059 221aa14e-8319-0410-a670-987f0aec2ac5

gr-usrp/src/db_xcvr2450.py

index 01b3af8cf23871880543babb8273fa3a9e9c2391..8c22f0d8065bb494364df05898d1bc892125a666 100644 (file)
@@ -327,7 +327,7 @@ class xcvr2450_tx(xcvr2450_base):
 
         Gain is controlled by a VGA in the output amplifier, not the PGA
         """
-        return (-56, 0, 0.1)
+        return (0, 63, 0.1)
 
     def set_gain(self, gain):
         """
@@ -336,7 +336,10 @@ class xcvr2450_tx(xcvr2450_base):
         @param gain:  gain in decibels
         @returns True/False
         """
-        maxgain = self.gain_range()[1]
+        gain = int(gain)
+        if (gain>gain_range()[1]) or (gain<gain_range()[0]):
+            raise ValueError, "TX Gain out of range."
+        
 
 class xcvr2450_rx(wbx_base):
     def __init__(self, usrp, which):
@@ -351,7 +354,7 @@ class xcvr2450_rx(wbx_base):
 
         self.bypass_adc_buffers(True)
 
-        self._lo_offset = -4e6
+        self._lo_offset = 0.0
 
     def __del__(self):
         # Power down