Advertisement
Guest User

Untitled

a guest
Sep 11th, 2012
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. diff --git a/host/lib/usrp/cores/rx_dsp_core_200.cpp b/host/lib/usrp/cores/rx_dsp_core_200.cpp
  2. index a894050..113a035 100644
  3. --- a/host/lib/usrp/cores/rx_dsp_core_200.cpp
  4. +++ b/host/lib/usrp/cores/rx_dsp_core_200.cpp
  5. @@ -194,7 +194,7 @@ public:
  6. }
  7.  
  8. void update_scalar(void){
  9. - const double target_scalar = (1 << 16)*_scaling_adjustment/_dsp_extra_scaling;
  10. + const double target_scalar = (1 << 16)*_scaling_adjustment/_dsp_extra_scaling*2.0;
  11. const boost::int32_t actual_scalar = boost::math::iround(target_scalar);
  12. _fxpt_scalar_correction = target_scalar/actual_scalar; //should be small
  13. _iface->poke32(REG_DSP_RX_SCALE_IQ, actual_scalar);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement