diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-01-14 07:50:09 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-01-14 07:50:09 +0100 |
commit | 016fa0af99a0edf2560d0faafcd212b3c4d48732 (patch) | |
tree | 2062f3cbde6913e9cb034f01e580014f487f6ffd | |
parent | db5e90c258f94e65df70830ab1c053debfa15cdb (diff) | |
download | dabmod-016fa0af99a0edf2560d0faafcd212b3c4d48732.tar.gz dabmod-016fa0af99a0edf2560d0faafcd212b3c4d48732.tar.bz2 dabmod-016fa0af99a0edf2560d0faafcd212b3c4d48732.zip |
SDR: set rxgain
-rw-r--r-- | src/output/SDR.cpp | 3 | ||||
-rw-r--r-- | src/output/UHD.cpp | 7 |
2 files changed, 2 insertions, 8 deletions
diff --git a/src/output/SDR.cpp b/src/output/SDR.cpp index 5290e5d..ed5da13 100644 --- a/src/output/SDR.cpp +++ b/src/output/SDR.cpp @@ -374,8 +374,7 @@ void SDR::set_parameter(const string& parameter, const string& value) } else if (parameter == "rxgain") { ss >> m_config.rxgain; - // TODO myUsrp->set_rx_gain(m_config.rxgain); - throw ParameterError("Parameter " + parameter + " is TODO."); + m_device->set_rxgain(m_config.rxgain); } else if (parameter == "freq") { ss >> m_config.frequency; diff --git a/src/output/UHD.cpp b/src/output/UHD.cpp index cee35c7..4816f34 100644 --- a/src/output/UHD.cpp +++ b/src/output/UHD.cpp @@ -85,8 +85,7 @@ static void uhd_msg_handler(uhd::msg::type_t type, const std::string &msg) -UHD::UHD( - SDRDeviceConfig& config) : +UHD::UHD(SDRDeviceConfig& config) : SDRDevice(), m_conf(config), m_running(false) @@ -104,10 +103,6 @@ UHD::UHD( MDEBUG("OutputUHD::OutputUHD(device: %s) @ %p\n", device.str().c_str(), this); - /* TODO - RC_ADD_PARAMETER(rxgain, "UHD analog daughterboard RX gain for DPD feedback"); - */ - uhd::msg::register_handler(uhd_msg_handler); uhd::set_thread_priority_safe(); |