mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-04-01 09:08:51 -04:00
PlutoSDR input: restore FIR and Sample Rate values after the limits have been updated
This commit is contained in:
parent
a088f2d30e
commit
4c9a14f108
@ -26,7 +26,7 @@
|
||||
#include "plutosdrinput.h"
|
||||
#include "plutosdrinputthread.h"
|
||||
|
||||
#define PLUTOSDR_BLOCKSIZE_SAMPLES (128*1024) //complex samples per buffer (must be multiple of 64)
|
||||
#define PLUTOSDR_BLOCKSIZE_SAMPLES (32*1024) //complex samples per buffer (must be multiple of 64)
|
||||
|
||||
MESSAGE_CLASS_DEFINITION(PlutoSDRInput::MsgConfigurePlutoSDR, Message)
|
||||
MESSAGE_CLASS_DEFINITION(PlutoSDRInput::MsgFileRecord, Message)
|
||||
|
@ -373,12 +373,14 @@ void PlutoSDRInputGui::setFIRBWLimits()
|
||||
float high = DevicePlutoSDR::firBWHighLimitFactor * ((PlutoSDRInput *) m_sampleSource)->getFIRSampleRate();
|
||||
float low = DevicePlutoSDR::firBWLowLimitFactor * ((PlutoSDRInput *) m_sampleSource)->getFIRSampleRate();
|
||||
ui->lpFIR->setValueRange(5, (int(low)/1000)+1, (int(high)/1000)+1);
|
||||
ui->lpFIR->setValue(m_settings.m_lpfFIRBW/1000);
|
||||
}
|
||||
|
||||
void PlutoSDRInputGui::setSampleRateLimits()
|
||||
{
|
||||
uint32_t low = ui->lpFIREnable->isChecked() ? DevicePlutoSDR::srLowLimitFreq / (1<<ui->lpFIRDecimation->currentIndex()) : DevicePlutoSDR::srLowLimitFreq;
|
||||
ui->sampleRate->setValueRange(8, low, DevicePlutoSDR::srHighLimitFreq);
|
||||
ui->sampleRate->setValue(m_settings.m_devSampleRate);
|
||||
}
|
||||
|
||||
void PlutoSDRInputGui::handleDSPMessages()
|
||||
|
Loading…
Reference in New Issue
Block a user