mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-08-14 23:43:43 -04:00
Ignore partiy bit. Remove unused filter.
This commit is contained in:
@@ -458,7 +458,7 @@ void PagerDemodSink::processOneSample(Complex &ci)
|
||||
m_gotSOP = true;
|
||||
m_inverted = true;
|
||||
}
|
||||
else if (popcount(m_bits ^ PAGERDEMOD_POCSAG_SYNCCODE) <= 2)
|
||||
else if (popcount((m_bits ^ PAGERDEMOD_POCSAG_SYNCCODE) & 0xfffffffeU) <= 2)
|
||||
{
|
||||
quint32 correctedCW;
|
||||
if (bchDecode(m_bits, correctedCW)
|
||||
@@ -468,7 +468,7 @@ void PagerDemodSink::processOneSample(Complex &ci)
|
||||
m_inverted = false;
|
||||
}
|
||||
}
|
||||
else if (popcount(m_bits ^ PAGERDEMOD_POCSAG_SYNCCODE_INV) <= 2)
|
||||
else if (popcount((m_bits ^ PAGERDEMOD_POCSAG_SYNCCODE_INV) & 0xfffffffeU) <= 2)
|
||||
{
|
||||
quint32 correctedCW;
|
||||
if (bchDecode(~m_bits, correctedCW)
|
||||
@@ -659,7 +659,6 @@ void PagerDemodSink::applySettings(const QStringList& settingsKeys, const PagerD
|
||||
m_interpolator.create(16, m_channelSampleRate, settings.m_rfBandwidth / 2.2);
|
||||
m_interpolatorDistance = (Real) m_channelSampleRate / (Real) PagerDemodSettings::m_channelSampleRate;
|
||||
m_interpolatorDistanceRemain = m_interpolatorDistance;
|
||||
m_lowpass.create(301, PagerDemodSettings::m_channelSampleRate, settings.m_rfBandwidth / 2.0f);
|
||||
}
|
||||
|
||||
if ((settingsKeys.contains("fmDeviation") && (settings.m_fmDeviation != m_settings.m_fmDeviation)) || force)
|
||||
|
||||
@@ -111,7 +111,6 @@ private:
|
||||
|
||||
MovingAverageUtil<Real, double, 16> m_movingAverage;
|
||||
|
||||
Lowpass<Complex> m_lowpass; // RF input filter
|
||||
PhaseDiscriminators m_phaseDiscri; // FM demodulator
|
||||
Lowpass<Real> m_lowpassBaud; // Low pass filter for FM demod output
|
||||
Real m_dcOffset; // Calculated DC offset of preamble
|
||||
|
||||
Reference in New Issue
Block a user