mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-10-11 22:34:12 +02:00
Re-add COS.
This commit is contained in:
@@ -65,11 +65,11 @@ m_hangTimer()
|
||||
m_filter.pCoeffs = FILTER_COEFFS;
|
||||
}
|
||||
|
||||
void CFM::samples(q15_t* samples, uint8_t length)
|
||||
void CFM::samples(bool cos, q15_t* samples, uint8_t length)
|
||||
{
|
||||
bool validSignal = m_ctcssRX.process(samples, length);
|
||||
bool validCTCSS = m_ctcssRX.process(samples, length);
|
||||
|
||||
stateMachine(validSignal, length);
|
||||
stateMachine(validCTCSS && cos, length);
|
||||
|
||||
if (m_modemState != STATE_FM)
|
||||
return;
|
||||
|
||||
@@ -41,7 +41,7 @@ class CFM {
|
||||
public:
|
||||
CFM();
|
||||
|
||||
void samples(q15_t* samples, uint8_t length);
|
||||
void samples(bool cos, q15_t* samples, uint8_t length);
|
||||
|
||||
void process();
|
||||
|
||||
|
||||
@@ -370,7 +370,8 @@ void CIO::process()
|
||||
FMVals[i] = q15_t(__SSAT((res1 >> 15), 16));
|
||||
}
|
||||
#endif
|
||||
fm.samples(FMVals, RX_BLOCK_SIZE);
|
||||
bool cos = getCOSInt();
|
||||
fm.samples(cos, FMVals, RX_BLOCK_SIZE);
|
||||
}
|
||||
} else if (m_modemState == STATE_DSTAR) {
|
||||
if (m_dstarEnable) {
|
||||
@@ -443,7 +444,8 @@ void CIO::process()
|
||||
FMVals[i] = q15_t(__SSAT((res1 >> 15), 16));
|
||||
}
|
||||
#endif
|
||||
fm.samples(FMVals, RX_BLOCK_SIZE);
|
||||
bool cos = getCOSInt();
|
||||
fm.samples(cos, FMVals, RX_BLOCK_SIZE);
|
||||
} else if (m_modemState == STATE_DSTARCAL) {
|
||||
q15_t GMSKVals[RX_BLOCK_SIZE];
|
||||
::arm_fir_fast_q15(&m_gaussianFilter, samples, GMSKVals, RX_BLOCK_SIZE);
|
||||
|
||||
Reference in New Issue
Block a user