diff options
author | Josh Blum <josh@joshknows.com> | 2010-10-25 17:04:51 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-10-25 17:04:51 -0700 |
commit | 2d21958e1b7ecc9ff083f2e60b0b5d06ccb3c638 (patch) | |
tree | 6fb67d3241e25eabe00b06bb26430aede2a8a4c6 /host/lib/usrp/tune_helper.cpp | |
parent | c398e8f437cd21ca9132f7227546060f8dcf9e5c (diff) | |
download | uhd-2d21958e1b7ecc9ff083f2e60b0b5d06ccb3c638.tar.gz uhd-2d21958e1b7ecc9ff083f2e60b0b5d06ccb3c638.tar.bz2 uhd-2d21958e1b7ecc9ff083f2e60b0b5d06ccb3c638.zip |
uhd: tune helper + request, forgot to use and set target freq
Diffstat (limited to 'host/lib/usrp/tune_helper.cpp')
-rw-r--r-- | host/lib/usrp/tune_helper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/tune_helper.cpp b/host/lib/usrp/tune_helper.cpp index 8c57cc428..a6b615926 100644 --- a/host/lib/usrp/tune_helper.cpp +++ b/host/lib/usrp/tune_helper.cpp @@ -70,7 +70,7 @@ static tune_result_t tune_xx_subdev_and_dsp( //------------------------------------------------------------------ //-- calculate the dsp freq, only used with automatic policy //------------------------------------------------------------------ - double delta_freq = std::fmod(target_inter_freq - actual_inter_freq, dsp_sample_rate); + double delta_freq = std::fmod(tune_request.target_freq - actual_inter_freq, dsp_sample_rate); bool outside_of_nyquist = std::abs(delta_freq) > dsp_sample_rate/2.0; double target_dsp_freq = (outside_of_nyquist)? boost::math::sign(delta_freq)*dsp_sample_rate - delta_freq : -delta_freq; |