aboutsummaryrefslogtreecommitdiffstats
path: root/OutputUHD.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-10-30 18:50:34 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-10-30 18:50:34 +0100
commitd4db9aca598b1ed419020de998d1257dbc7906a8 (patch)
treebfd3b90176d2b90aa5ee051e3f1516f71ac2cd46 /OutputUHD.cpp
parent5436be9a734e15d845e4b60117efd21b15b64285 (diff)
downloadodr-dpd-d4db9aca598b1ed419020de998d1257dbc7906a8.tar.gz
odr-dpd-d4db9aca598b1ed419020de998d1257dbc7906a8.tar.bz2
odr-dpd-d4db9aca598b1ed419020de998d1257dbc7906a8.zip
Add rxgain, do less copying for correlation
Diffstat (limited to 'OutputUHD.cpp')
-rw-r--r--OutputUHD.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/OutputUHD.cpp b/OutputUHD.cpp
index f1fe3bf..71ecde0 100644
--- a/OutputUHD.cpp
+++ b/OutputUHD.cpp
@@ -37,7 +37,7 @@
using namespace std;
-OutputUHD::OutputUHD(double txgain, double samplerate)
+OutputUHD::OutputUHD(double txgain, double rxgain, double samplerate)
{
m_txgain = txgain;
m_samplerate = samplerate;
@@ -58,6 +58,8 @@ OutputUHD::OutputUHD(double txgain, double samplerate)
m_usrp->set_tx_gain(m_txgain);
MDEBUG("OutputUHD:Actual TX Gain: %f ...\n", m_usrp->get_tx_gain());
+ m_usrp->set_rx_gain(m_rxgain);
+ MDEBUG("OutputUHD:Actual RX Gain: %f ...\n", m_usrp->get_rx_gain());
double tx_time = m_usrp->get_time_now().get_real_secs();
MDEBUG("OutputUHD: USRP time %f\n",