commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r8402 - usrp2/trunk/firmware/lib


From: matt
Subject: [Commit-gnuradio] r8402 - usrp2/trunk/firmware/lib
Date: Sun, 11 May 2008 19:08:37 -0600 (MDT)

Author: matt
Date: 2008-05-11 19:08:36 -0600 (Sun, 11 May 2008)
New Revision: 8402

Modified:
   usrp2/trunk/firmware/lib/db_tvrx.c
Log:
fixed gain offset scaling, now covers the full range


Modified: usrp2/trunk/firmware/lib/db_tvrx.c
===================================================================
--- usrp2/trunk/firmware/lib/db_tvrx.c  2008-05-12 00:31:41 UTC (rev 8401)
+++ usrp2/trunk/firmware/lib/db_tvrx.c  2008-05-12 01:08:36 UTC (rev 8402)
@@ -216,10 +216,10 @@
     ifgain = 0;
   }
   
-  int rf_slope_q8 = 256 * 4096 * 2.25 / 60.0 / 1.22 / 3.3;
-  int rf_offset_q8 = 256 * 4096 * 1.25 / 1.22 / 3.3;
-  int if_slope_q8 = 256 * 4096 * 2.1 / 35.0 / 1.22 / 3.3;
-  int if_offset_q8 = 256 * 4096 * 1.4 / 1.22 / 3.3;
+  int rf_slope_q8 = 256 * 4096 * 2.5 / 60.0 / 1.22 / 3.3;
+  int rf_offset_q8 = 128 * 256 * 4096 * 1.25 / 1.22 / 3.3;
+  int if_slope_q8 = 256 * 4096 * 2.25 / 35.0 / 1.22 / 3.3;
+  int if_offset_q8 = 128 * 256 * 4096 * 1.4 / 1.22 / 3.3;
 
   
   int rfdac = (rfgain*rf_slope_q8 + rf_offset_q8)>>15;





reply via email to

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