summaryrefslogtreecommitdiff
path: root/gr-usrp/src
diff options
context:
space:
mode:
authormatt <matt@221aa14e-8319-0410-a670-987f0aec2ac5>2007-11-30 19:33:45 +0000
committermatt <matt@221aa14e-8319-0410-a670-987f0aec2ac5>2007-11-30 19:33:45 +0000
commit92af10c79ff5596839262b4772c65ab405738623 (patch)
tree8ad985b291721a0bcbdc9f6513b39404a8fb04c7 /gr-usrp/src
parente01b98864f8dadc486e8f0c57ad69205944391a2 (diff)
minor updates
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@7059 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-usrp/src')
-rw-r--r--gr-usrp/src/db_xcvr2450.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/gr-usrp/src/db_xcvr2450.py b/gr-usrp/src/db_xcvr2450.py
index 01b3af8cf2..8c22f0d806 100644
--- a/gr-usrp/src/db_xcvr2450.py
+++ b/gr-usrp/src/db_xcvr2450.py
@@ -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