commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r9225 - gnuradio/branches/developers/trondeau/dbs/usrp


From: trondeau
Subject: [Commit-gnuradio] r9225 - gnuradio/branches/developers/trondeau/dbs/usrp/host/lib/legacy
Date: Sun, 10 Aug 2008 16:08:05 -0600 (MDT)

Author: trondeau
Date: 2008-08-10 16:08:05 -0600 (Sun, 10 Aug 2008)
New Revision: 9225

Modified:
   gnuradio/branches/developers/trondeau/dbs/usrp/host/lib/legacy/usrp_basic.cc
   gnuradio/branches/developers/trondeau/dbs/usrp/host/lib/legacy/usrp_basic.h
Log:
fixing PGA gains

Modified: 
gnuradio/branches/developers/trondeau/dbs/usrp/host/lib/legacy/usrp_basic.cc
===================================================================
--- 
gnuradio/branches/developers/trondeau/dbs/usrp/host/lib/legacy/usrp_basic.cc    
    2008-08-10 19:45:40 UTC (rev 9224)
+++ 
gnuradio/branches/developers/trondeau/dbs/usrp/host/lib/legacy/usrp_basic.cc    
    2008-08-10 22:08:05 UTC (rev 9225)
@@ -1,6 +1,6 @@
 /* -*- c++ -*- */
 /*
- * Copyright 2003,2004 Free Software Foundation, Inc.
+ * Copyright 2003,2004,2008 Free Software Foundation, Inc.
  * 
  * This file is part of GNU Radio
  * 

Modified: 
gnuradio/branches/developers/trondeau/dbs/usrp/host/lib/legacy/usrp_basic.h
===================================================================
--- gnuradio/branches/developers/trondeau/dbs/usrp/host/lib/legacy/usrp_basic.h 
2008-08-10 19:45:40 UTC (rev 9224)
+++ gnuradio/branches/developers/trondeau/dbs/usrp/host/lib/legacy/usrp_basic.h 
2008-08-10 22:08:05 UTC (rev 9225)
@@ -127,14 +127,14 @@
    * \brief Return minimum legal PGA gain in dB.
    */
   virtual double pga_min () const;
-  double pga_tx_min () const { return 0.0; }
+  double pga_tx_min () const { return -20.0; }
   double pga_rx_min () const { return 0.0; }
 
   /*!
    * \brief Return maximum legal PGA gain in dB.
    */
   virtual double pga_max () const;
-  double pga_tx_max () const { return 20.0; }
+  double pga_tx_max () const { return 0.0; }
   double pga_rx_max () const { return 20.0; }
 
   /*!
@@ -142,7 +142,7 @@
    */
   virtual double pga_db_per_step () const;
   double pga_tx_db_per_step () const { return 20.0 / 20; }
-  double pga_rx_db_per_step () const { return 20.0/255; }
+  double pga_rx_db_per_step () const { return 20.0 / 255; }
   
   /*!
    * \brief return frequency of master oscillator on USRP





reply via email to

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