mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-23 08:28:36 -05:00
LimeSDR input: corrected getSampleRate not to divide source sample rate by hardware decimation
This commit is contained in:
parent
763175ab55
commit
3621849027
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user