1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 09:48:45 -05:00

Test Source: fixed glitches

This commit is contained in:
f4exb 2018-08-06 22:46:48 +02:00
parent 29677cba06
commit b174e6b7ad
2 changed files with 7 additions and 1 deletions

View File

@ -379,11 +379,17 @@ void TestSourceGui::displaySettings()
ui->amplitudeFine->setValue(amplitudeBits%100);
displayAmplitude();
int dcBiasPercent = roundf(m_settings.m_dcFactor * 100.0f);
ui->dcBias->setValue((int) dcBiasPercent);
ui->dcBiasText->setText(QString(tr("%1 %").arg(dcBiasPercent)));
int iBiasPercent = roundf(m_settings.m_iFactor * 100.0f);
ui->iBias->setValue((int) iBiasPercent);
ui->iBiasText->setText(QString(tr("%1 %").arg(iBiasPercent)));
int qBiasPercent = roundf(m_settings.m_qFactor * 100.0f);
ui->qBias->setValue((int) qBiasPercent);
ui->qBiasText->setText(QString(tr("%1 %").arg(qBiasPercent)));
int phaseImbalancePercent = roundf(m_settings.m_phaseImbalance * 100.0f);
ui->phaseImbalance->setValue((int) phaseImbalancePercent);
ui->phaseImbalanceText->setText(QString(tr("%1 %").arg(phaseImbalancePercent)));
ui->autoCorr->setCurrentIndex(m_settings.m_autoCorrOptions);
ui->sampleSize->blockSignals(false);
ui->modulation->setCurrentIndex((int) m_settings.m_modulation);

View File

@ -133,7 +133,7 @@ const QString& TestSourceInput::getDeviceDescription() const
int TestSourceInput::getSampleRate() const
{
return m_settings.m_sampleRate;
return m_settings.m_sampleRate/(1<<m_settings.m_log2Decim);
}
quint64 TestSourceInput::getCenterFrequency() const