On Monday 06 October 2008 20:30:36 Stefan Brüns wrote: > On Monday 06 October 2008 19:31:04 Stefan Brüns wrote: > > The DB code sets the gain in the 9862 to the wrong value (there is > > something wrong with the calculation of the register value from the gain > > in db) - this may be fixed in the cppdb feature branch. > > Patch attached. > > Stefan
Sorry, wrong one, only the last hunk is the correct part. Attached again. Stefan -- Stefan Brüns / Bergstraße 21 / 52062 Aachen mailto:lurch at gmx.li http://www.kawo1.rwth-aachen.de/~lurchi/ phone: +49 241 53809034 mobile: +49 151 50412019
=== modified file 'usrp/host/lib/legacy/usrp_basic.h' --- usrp/host/lib/legacy/usrp_basic.h 2008-09-24 17:59:43 +0000 +++ usrp/host/lib/legacy/usrp_basic.h 2008-10-06 18:27:44 +0000 @@ -181,8 +181,8 @@ * \brief Return hardware step size of PGA (linear in dB). */ 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_tx_db_per_step () const { return 20.0 / 255; } + double pga_rx_db_per_step () const { return 20.0 / 20; } /*! * \brief return frequency of master oscillator on USRP
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio