Commit 4d715e9b authored by Richard's avatar Richard

SoapyLMS: Revert IQbalance change

parent a02144b4
Pipeline #138665714 passed with stage
in 10 minutes and 17 seconds
......@@ -237,7 +237,7 @@ bool SoapyLMS7::hasIQBalance(const int /*direction*/, const size_t /*channel*/)
void SoapyLMS7::setIQBalance(const int direction, const size_t channel, const std::complex<double> &balance)
{
const auto lmsDir = (direction == SOAPY_SDR_TX)?LMS7002M::Tx:LMS7002M::Rx;
double gain = std::abs(balance); if (gain == 0) gain = 1.0;
double gain = std::abs(balance);
double gainI = 1.0; if (gain < 1.0) gainI = gain/1.0;
double gainQ = 1.0; if (gain > 1.0) gainQ = 1.0/gain;
std::unique_lock<std::recursive_mutex> lock(_accessMutex);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment