commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r10254 - gnuradio/trunk/usrp/host/lib/inband


From: gnychis
Subject: [Commit-gnuradio] r10254 - gnuradio/trunk/usrp/host/lib/inband
Date: Sat, 17 Jan 2009 12:59:28 -0700 (MST)

Author: gnychis
Date: 2009-01-17 12:59:28 -0700 (Sat, 17 Jan 2009)
New Revision: 10254

Modified:
   gnuradio/trunk/usrp/host/lib/inband/usrp_usb_interface.cc
Log:
merging -r10252:10253 from developer branch to kick RX gain down in half on 
default

Modified: gnuradio/trunk/usrp/host/lib/inband/usrp_usb_interface.cc
===================================================================
--- gnuradio/trunk/usrp/host/lib/inband/usrp_usb_interface.cc   2009-01-17 
19:56:18 UTC (rev 10253)
+++ gnuradio/trunk/usrp/host/lib/inband/usrp_usb_interface.cc   2009-01-17 
19:59:28 UTC (rev 10254)
@@ -337,6 +337,7 @@
     printf("mux: %#08x\n",  mux);
     printf("target_freq:     %f\n", target_freq);
     printf("ok:              %s\n", ok ? "true" : "false");
+    printf("gain:            %d\n", tgain);
     printf("r.baseband_freq: %f\n", r.baseband_freq);
     printf("r.dxc_freq:      %f\n", r.dxc_freq);
     printf("r.residual_freq: %f\n", r.residual_freq);
@@ -382,8 +383,8 @@
   mux = d_urx->determine_rx_mux_value(rspec);
   d_urx->set_mux(mux);
   
-  // Set the TX gain and determine rate
-  rgain = rsubdev->gain_max();
+  // Set the RX gain and determine rate
+  rgain = rsubdev->gain_max()/2.0;
   rsubdev->set_gain(rgain);
   input_rate = d_ub_rx->converter_rate() / d_urx->decim_rate();
 
@@ -397,6 +398,7 @@
     printf("mux: %#08x\n",  mux);
     printf("target_freq:     %f\n", target_freq);
     printf("ok:              %s\n", ok ? "true" : "false");
+    printf("gain:            %d\n", rgain);
     printf("r.baseband_freq: %f\n", r.baseband_freq);
     printf("r.dxc_freq:      %f\n", r.dxc_freq);
     printf("r.residual_freq: %f\n", r.residual_freq);





reply via email to

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