PlutoSDR input: restored LO ppm correction

pull/60/head
f4exb 2017-09-10 17:18:08 +02:00
rodzic 251fcd202d
commit 924eddd3b8
3 zmienionych plików z 14 dodań i 12 usunięć

Wyświetl plik

@ -41,14 +41,14 @@ DevicePlutoSDRBox::DevicePlutoSDRBox(const std::string& uri) :
if (m_valid) {
getXO();
setTracking();
int nb_channels = iio_device_get_channels_count(m_devRx);
for (int i = 0; i < nb_channels; i++) {
iio_channel_disable(iio_device_get_channel(m_devRx, i));
}
nb_channels = iio_device_get_channels_count(m_devTx);
for (int i = 0; i < nb_channels; i++) {
iio_channel_disable(iio_device_get_channel(m_devTx, i));
}
// int nb_channels = iio_device_get_channels_count(m_devRx);
// for (int i = 0; i < nb_channels; i++) {
// iio_channel_disable(iio_device_get_channel(m_devRx, i));
// }
// nb_channels = iio_device_get_channels_count(m_devTx);
// for (int i = 0; i < nb_channels; i++) {
// iio_channel_disable(iio_device_get_channel(m_devTx, i));
// }
}
}

Wyświetl plik

@ -358,10 +358,10 @@ bool PlutoSDRInput::applySettings(const PlutoSDRInputSettings& settings, bool fo
}
}
// if ((m_settings.m_LOppmTenths != settings.m_LOppmTenths) || force)
// {
// plutoBox->setLOPPMTenths(settings.m_LOppmTenths);
// }
if ((m_settings.m_LOppmTenths != settings.m_LOppmTenths) || force)
{
plutoBox->setLOPPMTenths(settings.m_LOppmTenths);
}
std::vector<std::string> params;
bool paramsToSet = false;

Wyświetl plik

@ -168,6 +168,7 @@ void PlutoSDRInputGui::on_centerFrequency_changed(quint64 value)
void PlutoSDRInputGui::on_loPPM_valueChanged(int value)
{
ui->loPPMText->setText(QString("%1").arg(QString::number(value/10.0, 'f', 1)));
m_settings.m_LOppmTenths = value;
sendSettings();
}
@ -258,6 +259,7 @@ void PlutoSDRInputGui::displaySettings()
ui->dcOffset->setChecked(m_settings.m_dcBlock);
ui->iqImbalance->setChecked(m_settings.m_iqCorrection);
ui->loPPMText->setText(QString("%1").arg(QString::number(m_settings.m_LOppmTenths/10.0, 'f', 1)));
ui->swDecim->setCurrentIndex(m_settings.m_log2Decim);