summaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorNick Foster <nick@nerdnetworks.org>2010-12-28 18:32:17 -0800
committerNick Foster <nick@nerdnetworks.org>2010-12-28 18:32:17 -0800
commit253ac61ad1a0742395e43031a861cc7c13ffe2e5 (patch)
treeb237bd883d950c68034a0a33dc56fcaf1ff958cd /host
parentd0244e8390985911a1ba4f95ed64f40e56a40e7f (diff)
downloaduhd-253ac61ad1a0742395e43031a861cc7c13ffe2e5.tar.gz
uhd-253ac61ad1a0742395e43031a861cc7c13ffe2e5.tar.bz2
uhd-253ac61ad1a0742395e43031a861cc7c13ffe2e5.zip
TVRX: fix bug in rf_gain_to_voltage -- we're hi-side mixing, not lo-side
Diffstat (limited to 'host')
-rw-r--r--host/lib/usrp/dboard/db_tvrx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/dboard/db_tvrx.cpp b/host/lib/usrp/dboard/db_tvrx.cpp
index 17fdad74a..2508555d0 100644
--- a/host/lib/usrp/dboard/db_tvrx.cpp
+++ b/host/lib/usrp/dboard/db_tvrx.cpp
@@ -280,7 +280,7 @@ static float rf_gain_to_voltage(float gain, double lo_freq){
gain = get_tvrx_gain_ranges()["RF"].clip(gain);
//first we need to find out what band we're in, because gains are different across different bands
- std::string band = get_band(lo_freq + tvrx_if_freq);
+ std::string band = get_band(lo_freq - tvrx_if_freq);
//this is the voltage at the TVRX gain input
double gain_volts = gain_interp(gain, tvrx_rf_gains_db[band], tvrx_gains_volts);