mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-25 12:12:02 -05:00
DSD demod: show cosine filter output in scope if the filter is engaged
This commit is contained in:
parent
2bd7f49259
commit
001cadae2a
@ -29,6 +29,7 @@ public:
|
|||||||
~DSDDecoder();
|
~DSDDecoder();
|
||||||
|
|
||||||
void pushSample(short sample) { m_decoder.run(sample); }
|
void pushSample(short sample) { m_decoder.run(sample); }
|
||||||
|
short getFilteredSample() const { return m_decoder.getFilteredSample(); }
|
||||||
short *getAudio(int& nbSamples) { return m_decoder.getAudio(nbSamples); }
|
short *getAudio(int& nbSamples) { return m_decoder.getAudio(nbSamples); }
|
||||||
void resetAudio() { m_decoder.resetAudio(); }
|
void resetAudio() { m_decoder.resetAudio(); }
|
||||||
void enableMbelib(bool enable) { m_decoder.enableMbelib(enable); }
|
void enableMbelib(bool enable) { m_decoder.enableMbelib(enable); }
|
||||||
|
@ -155,6 +155,12 @@ void DSDDemod::feed(const SampleVector::const_iterator& begin, const SampleVecto
|
|||||||
sample = 0;
|
sample = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_dsdDecoder.pushSample(sample);
|
||||||
|
|
||||||
|
if (m_running.m_enableCosineFiltering) { // show actual input to FSK demod
|
||||||
|
sample = m_dsdDecoder.getFilteredSample();
|
||||||
|
}
|
||||||
|
|
||||||
if (m_sampleBufferIndex < (1<<17)) {
|
if (m_sampleBufferIndex < (1<<17)) {
|
||||||
m_sampleBufferIndex++;
|
m_sampleBufferIndex++;
|
||||||
} else {
|
} else {
|
||||||
@ -171,7 +177,6 @@ void DSDDemod::feed(const SampleVector::const_iterator& begin, const SampleVecto
|
|||||||
|
|
||||||
Sample s(sample, delayedSample); // I=signal, Q=signal delayed by 20 samples (2400 baud: lowest rate)
|
Sample s(sample, delayedSample); // I=signal, Q=signal delayed by 20 samples (2400 baud: lowest rate)
|
||||||
m_scopeSampleBuffer.push_back(s);
|
m_scopeSampleBuffer.push_back(s);
|
||||||
m_dsdDecoder.pushSample(sample);
|
|
||||||
|
|
||||||
if (DSPEngine::instance()->hasDVSerialSupport() && m_dsdDecoder.mbeDVReady())
|
if (DSPEngine::instance()->hasDVSerialSupport() && m_dsdDecoder.mbeDVReady())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user