From f81a954d1d72317efc5726cbda15c0b3c3843b5e Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Thu, 12 Jul 2018 16:18:54 -0400 Subject: [PATCH] Ensure 10Hz offset for FT8 reception --- mainwindow.cpp | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 64db773..d3430b6 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -3235,18 +3235,22 @@ void MainWindow::readFromStdout() //readFromStdout if(m_config.bFox() and for_us and (audioFreq<1000)) bDisplayRight=true; if(!m_config.bFox() and (for_us or (abs(audioFreq - m_wideGraph->rxFreq()) <= 10))) bDisplayRight=true; } - } else { - if(abs(audioFreq - m_wideGraph->rxFreq()) <= 10) bDisplayRight=true; + } + + if(abs(audioFreq - m_wideGraph->rxFreq()) <= 10){ + bDisplayRight=true; } // if this frequency offset is within our directed call cache in the last 2 minutes. - if(isRecentlyDirected(audioFreq)){ + if(isRecentlyDirected(audioFreq) || isMyCallIncluded(decodedtext.message())){ bDisplayRight = true; } + qDebug() << bDisplayRight; + if (bDisplayRight) { // This msg is within 10 hertz of our tuned frequency, or a JT4 or JT65 avg, - // or contains MyCall + // or Words().first()contains MyCall ui->decodedTextBrowser2->displayDecodedText(decodedtext,m_baseCall,false, m_logBook,m_config.color_CQ(),m_config.color_MyCall(), m_config.color_DXCC(),m_config.color_NewCall(),m_config.ppfx()); @@ -3262,14 +3266,12 @@ void MainWindow::readFromStdout() //readFromStdout RXDetail d; d.isFree = !decodedtext.isStandardMessage(); d.freq = audioFreq; - d.text = decodedtext.messageWords().first(); + d.text = decodedtext.message(); d.utcTimestamp = QDateTime::currentDateTimeUtc(); m_rxFrameQueue.append(d); // bump the directed cache datetime if this is our callsign, or we've seen this recently... - if(isRecentlyDirected(audioFreq) || isMyCallIncluded(d.text)){ - m_rxDirectedCache.insert(audioFreq/10*10, new QDateTime(QDateTime::currentDateTimeUtc()), 25); - } + m_rxDirectedCache.insert(audioFreq/10*10, new QDateTime(QDateTime::currentDateTimeUtc()), 25); } if(m_mode=="FT8" and m_config.bHound()) {