commit-gnuradio
[Top][All Lists]
Advanced

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

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


From: matt
Subject: [Commit-gnuradio] r7059 - gnuradio/trunk/gr-usrp/src
Date: Fri, 30 Nov 2007 12:33:45 -0700 (MST)

Author: matt
Date: 2007-11-30 12:33:45 -0700 (Fri, 30 Nov 2007)
New Revision: 7059

Modified:
   gnuradio/trunk/gr-usrp/src/db_xcvr2450.py
Log:
minor updates


Modified: gnuradio/trunk/gr-usrp/src/db_xcvr2450.py
===================================================================
--- gnuradio/trunk/gr-usrp/src/db_xcvr2450.py   2007-11-29 22:02:25 UTC (rev 
7058)
+++ gnuradio/trunk/gr-usrp/src/db_xcvr2450.py   2007-11-30 19:33:45 UTC (rev 
7059)
@@ -327,7 +327,7 @@
 
         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 @@
         @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 @@
 
         self.bypass_adc_buffers(True)
 
-        self._lo_offset = -4e6
+        self._lo_offset = 0.0
 
     def __del__(self):
         # Power down





reply via email to

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