commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r10253 - gnuradio/branches/developers/gnychis/inband_d


From: gnychis
Subject: [Commit-gnuradio] r10253 - gnuradio/branches/developers/gnychis/inband_dboard/usrp/host/lib/inband
Date: Sat, 17 Jan 2009 12:56:19 -0700 (MST)

Author: gnychis
Date: 2009-01-17 12:56:18 -0700 (Sat, 17 Jan 2009)
New Revision: 10253

Modified:
   
gnuradio/branches/developers/gnychis/inband_dboard/usrp/host/lib/inband/usrp_usb_interface.cc
Log:
max gain on RX is too much as a default, cutting in half

Modified: 
gnuradio/branches/developers/gnychis/inband_dboard/usrp/host/lib/inband/usrp_usb_interface.cc
===================================================================
--- 
gnuradio/branches/developers/gnychis/inband_dboard/usrp/host/lib/inband/usrp_usb_interface.cc
       2009-01-17 19:39:29 UTC (rev 10252)
+++ 
gnuradio/branches/developers/gnychis/inband_dboard/usrp/host/lib/inband/usrp_usb_interface.cc
       2009-01-17 19:56:18 UTC (rev 10253)
@@ -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]