swap IQ on TX side, and allow a second chance to get lock detect
authormatt <matt@221aa14e-8319-0410-a670-987f0aec2ac5>
Sun, 10 Feb 2008 23:37:26 +0000 (23:37 +0000)
committermatt <matt@221aa14e-8319-0410-a670-987f0aec2ac5>
Sun, 10 Feb 2008 23:37:26 +0000 (23:37 +0000)
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@7627 221aa14e-8319-0410-a670-987f0aec2ac5

gr-usrp/src/db_xcvr2450.py

index c08f091ab30fb15bb3e29a0ef3ddd1e0606978a1..79098c72dd044ea1450fde126ff105532ed7e00b 100644 (file)
@@ -395,6 +395,9 @@ class xcvr2450(object):
 
         ok = self.lock_detect()
         print "lock detect:", ok
+        if(not ok):
+            ok = self.lock_detect()
+            print "lock detect:", ok
         return (ok, actual_freq)
 
     def lock_detect(self):
@@ -490,7 +493,9 @@ class db_xcvr2450_tx(db_xcvr2450_base):
 
     def set_gain(self, gain):
         return self.xcvr.set_tx_gain(gain)
-        
+
+    def i_and_q_swapped(self):
+        return True
 
 class db_xcvr2450_rx(db_xcvr2450_base):
     def __init__(self, usrp, which):