diff options
author | Josh Blum <josh@joshknows.com> | 2011-01-04 16:49:34 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-01-04 16:49:34 -0800 |
commit | fabfa8d9dd6670afb9c621b9ee12f8d602d7ccda (patch) | |
tree | 107e43e35008e6df0d33b0e8a8f5f52d28a91493 /host/lib/usrp/dboard | |
parent | 4711829f03ee2fcd1c4e9dc2a353af0e35497180 (diff) | |
parent | 7b0b2924d52bbbcb4660cad5d8070074426011ce (diff) | |
download | uhd-fabfa8d9dd6670afb9c621b9ee12f8d602d7ccda.tar.gz uhd-fabfa8d9dd6670afb9c621b9ee12f8d602d7ccda.tar.bz2 uhd-fabfa8d9dd6670afb9c621b9ee12f8d602d7ccda.zip |
Merge branch 'cordic_policy' into next
Conflicts:
host/lib/usrp/usrp2/usrp2_regs.cpp
host/lib/usrp/usrp2/usrp2_regs.hpp
Diffstat (limited to 'host/lib/usrp/dboard')
-rw-r--r-- | host/lib/usrp/dboard/db_tvrx.cpp | 2 |
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); |