1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-25 17:28:50 -05:00

PlutoSDR input: restored LO ppm correction

This commit is contained in:
f4exb 2017-09-10 17:18:08 +02:00
parent 251fcd202d
commit 924eddd3b8
3 changed files with 14 additions and 12 deletions

View File

@ -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));
// }
}
}

View File

@ -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;

View File

@ -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);