1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-24 10:50:29 -05:00

LimeSDR input: corrected getSampleRate not to divide source sample rate by hardware decimation

This commit is contained in:
f4exb 2017-04-19 00:00:47 +02:00
parent 763175ab55
commit 3621849027
3 changed files with 3 additions and 3 deletions

View File

@ -239,7 +239,7 @@ const QString& LimeSDRInput::getDeviceDescription() const
int LimeSDRInput::getSampleRate() const
{
int rate = m_settings.m_devSampleRate;
return (rate / (1<<(m_settings.m_log2HardDecim + m_settings.m_log2SoftDecim)));
return (rate / (1<<m_settings.m_log2SoftDecim));
}
quint64 LimeSDRInput::getCenterFrequency() const

View File

@ -156,7 +156,7 @@ void LimeSDRInputGUI::handleMessagesToGUI()
DSPSignalNotification* notif = (DSPSignalNotification*) message;
m_sampleRate = notif->getSampleRate();
m_deviceCenterFrequency = notif->getCenterFrequency();
qDebug("LimeSDRInputGUI::handleMessagesToGUI: SampleRate:%d, CenterFrequency:%llu", notif->getSampleRate(), notif->getCenterFrequency());
qDebug("LimeSDRInputGUI::handleMessagesToGUI: SampleRate: %d, CenterFrequency: %llu", notif->getSampleRate(), notif->getCenterFrequency());
updateSampleRateAndFrequency();
m_fileSink->handleMessage(*notif); // forward to file sink

View File

@ -34,7 +34,7 @@ void LimeSDRInputSettings::resetToDefaults()
m_lpfBW = 4.5e6f;
m_lpfFIREnable = false;
m_lpfFIRBW = 2.5e6f;
m_gain = 0;
m_gain = 30;
}
QByteArray LimeSDRInputSettings::serialize() const