aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/dboard/db_tvrx.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-02-24 17:28:10 -0800
committerJosh Blum <josh@joshknows.com>2011-02-24 17:28:10 -0800
commit1526889803f2fc909d97c16b59323107db184381 (patch)
tree9f7d5a86a6a7b232375e9f1bc4c657b629906abb /host/lib/usrp/dboard/db_tvrx.cpp
parent4357f5d3c043245b5c086b20742795624af9f432 (diff)
downloaduhd-1526889803f2fc909d97c16b59323107db184381.tar.gz
uhd-1526889803f2fc909d97c16b59323107db184381.tar.bz2
uhd-1526889803f2fc909d97c16b59323107db184381.zip
uhd: switch algorithm namespace to uhd
Diffstat (limited to 'host/lib/usrp/dboard/db_tvrx.cpp')
-rw-r--r--host/lib/usrp/dboard/db_tvrx.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/host/lib/usrp/dboard/db_tvrx.cpp b/host/lib/usrp/dboard/db_tvrx.cpp
index 4d7cb22f8..dc38ef45e 100644
--- a/host/lib/usrp/dboard/db_tvrx.cpp
+++ b/host/lib/usrp/dboard/db_tvrx.cpp
@@ -241,7 +241,7 @@ static std::string get_band(double freq) {
static double gain_interp(double gain, boost::array<double, 17> db_vector, boost::array<double, 17> volts_vector) {
double volts;
- gain = std::clip<double>(gain, db_vector.front(), db_vector.back()); //let's not get carried away here
+ gain = uhd::clip<double>(gain, db_vector.front(), db_vector.back()); //let's not get carried away here
boost::uint8_t gain_step = 0;
//find which bin we're in
@@ -288,7 +288,7 @@ static double rf_gain_to_voltage(double gain, double lo_freq){
//this is the voltage at the USRP DAC output
double dac_volts = gain_volts / opamp_gain;
- dac_volts = std::clip<double>(dac_volts, 0.0, 3.3);
+ dac_volts = uhd::clip<double>(dac_volts, 0.0, 3.3);
if (tvrx_debug) std::cerr << boost::format(
"tvrx RF AGC gain: %f dB, dac_volts: %f V"
@@ -311,7 +311,7 @@ static double if_gain_to_voltage(double gain){
double gain_volts = gain_interp(gain, tvrx_if_gains_db, tvrx_gains_volts);
double dac_volts = gain_volts / opamp_gain;
- dac_volts = std::clip<double>(dac_volts, 0.0, 3.3);
+ dac_volts = uhd::clip<double>(dac_volts, 0.0, 3.3);
if (tvrx_debug) std::cerr << boost::format(
"tvrx IF AGC gain: %f dB, dac_volts: %f V"