aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2012-09-11 12:58:28 -0700
committerJosh Blum <josh@joshknows.com>2012-09-11 12:58:28 -0700
commitf969650555e1fbf87548d861e6b5126e8a641b3e (patch)
tree5012700bb4a88b166fc9dad0bf827b98ae2e7b62 /host/lib/usrp
parent64d1553850fa729e3d4bf0a1d496c47316ac0c34 (diff)
downloaduhd-f969650555e1fbf87548d861e6b5126e8a641b3e.tar.gz
uhd-f969650555e1fbf87548d861e6b5126e8a641b3e.tar.bz2
uhd-f969650555e1fbf87548d861e6b5126e8a641b3e.zip
usrp: fix rx dsp core scaling factor off by 2
The scale factor is a 18 bit number, this should be 1 << 17
Diffstat (limited to 'host/lib/usrp')
-rw-r--r--host/lib/usrp/cores/rx_dsp_core_200.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/cores/rx_dsp_core_200.cpp b/host/lib/usrp/cores/rx_dsp_core_200.cpp
index cf8db1927..a9b7d8672 100644
--- a/host/lib/usrp/cores/rx_dsp_core_200.cpp
+++ b/host/lib/usrp/cores/rx_dsp_core_200.cpp
@@ -184,7 +184,7 @@ public:
}
void update_scalar(void){
- const double target_scalar = (1 << 16)*_scaling_adjustment/_dsp_extra_scaling;
+ const double target_scalar = (1 << 17)*_scaling_adjustment/_dsp_extra_scaling;
const boost::int32_t actual_scalar = boost::math::iround(target_scalar);
_fxpt_scalar_correction = target_scalar/actual_scalar; //should be small
_iface->poke32(REG_DSP_RX_SCALE_IQ, actual_scalar);