mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-13 19:28:41 -04:00
ChirpChat demod: optimize SFD detection
This commit is contained in:
@@ -286,8 +286,10 @@ void ChirpChatDemodSink::processSample(const Complex& ci)
|
||||
|
||||
m_preambleHistory[m_chirpCount] = imax;
|
||||
m_chirpCount++;
|
||||
double preDrop = magsqPre - magsqSFD;
|
||||
double dropRatio = -preDrop / magsqSFD;
|
||||
|
||||
if (magsqPre < magsqSFD) // preamble drop
|
||||
if ((preDrop < 0.0) && (dropRatio > 0.5)) // preamble drop
|
||||
{
|
||||
m_magsqTotalAvg(magsqSFDTotal);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user