From 253ac61ad1a0742395e43031a861cc7c13ffe2e5 Mon Sep 17 00:00:00 2001 From: Nick Foster Date: Tue, 28 Dec 2010 18:32:17 -0800 Subject: TVRX: fix bug in rf_gain_to_voltage -- we're hi-side mixing, not lo-side --- host/lib/usrp/dboard/db_tvrx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/lib/usrp') 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); -- cgit v1.2.3