summaryrefslogtreecommitdiffstats
path: root/host/test
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-12-03 11:46:47 -0500
committerJosh Blum <josh@joshknows.com>2010-12-03 11:46:47 -0500
commitc67b06fd6541bbcd59de459e82735974cbdb3d88 (patch)
tree4122a67bf685b0200aa66e86e8230477ced782b5 /host/test
parent9d13960d8fb4303979b7986db8c9e1f2c8565312 (diff)
downloaduhd-c67b06fd6541bbcd59de459e82735974cbdb3d88.tar.gz
uhd-c67b06fd6541bbcd59de459e82735974cbdb3d88.tar.bz2
uhd-c67b06fd6541bbcd59de459e82735974cbdb3d88.zip
usrp: move dsp tuning wrap-around into the dsp utils (allows the dsp handler to get the full value)
Diffstat (limited to 'host/test')
-rw-r--r--host/test/tune_helper_test.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/host/test/tune_helper_test.cpp b/host/test/tune_helper_test.cpp
index e0500ae3f..735e7e948 100644
--- a/host/test/tune_helper_test.cpp
+++ b/host/test/tune_helper_test.cpp
@@ -19,6 +19,7 @@
#include <uhd/usrp/tune_helper.hpp>
#include <uhd/usrp/subdev_props.hpp>
#include <uhd/usrp/dsp_props.hpp>
+#include <uhd/usrp/dsp_utils.hpp>
#include <iostream>
using namespace uhd;
@@ -165,6 +166,7 @@ private:
switch(key.as<dsp_prop_t>()){
case DSP_PROP_FREQ_SHIFT:
_freq_shift = val.as<double>();
+ dsp_type1::calc_cordic_word_and_update(_freq_shift, _codec_rate);
return;
case DSP_PROP_HOST_RATE: