mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-02 06:04:39 -04:00
Demod Analyzer: fixed sample rate handling. Fixes #931
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#include "SWGFeatureActions.h"
|
||||
#include "SWGDeviceState.h"
|
||||
|
||||
#include "dsp/dspcommands.h"
|
||||
#include "dsp/dspengine.h"
|
||||
#include "dsp/datafifo.h"
|
||||
#include "dsp/dspdevicesourceengine.h"
|
||||
@@ -149,6 +150,8 @@ bool DemodAnalyzer::handleMessage(const Message& cmd)
|
||||
MsgSelectChannel& cfg = (MsgSelectChannel&) cmd;
|
||||
ChannelAPI *selectedChannel = cfg.getChannel();
|
||||
setChannel(selectedChannel);
|
||||
MainCore::MsgChannelDemodQuery *msg = MainCore::MsgChannelDemodQuery::create();
|
||||
selectedChannel->getChannelMessageQueue()->push(msg);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -160,6 +163,10 @@ bool DemodAnalyzer::handleMessage(const Message& cmd)
|
||||
if (report.getChannelAPI() == m_selectedChannel)
|
||||
{
|
||||
m_sampleRate = report.getSampleRate();
|
||||
m_scopeVis.setLiveRate(m_sampleRate);
|
||||
|
||||
DSPSignalNotification *msg = new DSPSignalNotification(0, m_sampleRate);
|
||||
m_spectrumVis.getInputMessageQueue()->push(msg);
|
||||
|
||||
if (m_dataFifo) {
|
||||
m_dataFifo->setSize(2*m_sampleRate);
|
||||
|
||||
@@ -6,14 +6,18 @@ This plugin can be used to analyze the real demodulated signal from some Rx chan
|
||||
|
||||
Rx plugins are:
|
||||
|
||||
- AIS demodulator
|
||||
- AM demodulator
|
||||
- DAB demodulator
|
||||
- DSD (FM digital voice) demodulator
|
||||
- NFM demodulator
|
||||
- Packer demodulator
|
||||
- SSB demodulator
|
||||
- WFM demodulator
|
||||
|
||||
Tx plugins are:
|
||||
|
||||
- AIS modulator
|
||||
- AM modulator
|
||||
- NFM modulator
|
||||
- Packet modulator
|
||||
@@ -55,7 +59,7 @@ Use this combo to select which channel to use for display. Channel is selected u
|
||||
|
||||
<h3>A.4: (Re)apply channel selection</h3>
|
||||
|
||||
Applies or re-applies channel selection (A.3) so that the channel gets effectively connected to the analyzer and signal is displayed.
|
||||
Applies or re-applies channel selection (A.3) so that the channel gets effectively connected to the analyzer and signal is displayed. This will update the sample rate.
|
||||
|
||||
<h3>A.5: Decimation by a power of two</h3>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user