kopia lustrzana https://github.com/f4exb/sdrangel
				
				
				
			PlutoSDR input: restore FIR and Sample Rate values after the limits have been updated
							rodzic
							
								
									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()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Ładowanie…
	
		Reference in New Issue