From a728f045a22d961194454f28bf12eb4d407a6ff0 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Thu, 6 Jul 2017 19:21:55 +0000 Subject: [PATCH] Decodes at QSO freq to right window in FT8 mode. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7795 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 38ea8bda2..ad3b472a9 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -2649,7 +2649,7 @@ void MainWindow::readFromStdout() //readFromStdout } return; } else { - if(m_mode=="JT4" or m_mode=="JT65" or m_mode=="QRA64") { + if(m_mode=="JT4" or m_mode=="JT65" or m_mode=="QRA64" or m_mode=="FT8") { int n=t.indexOf("f"); if(n<0) n=t.indexOf("d"); if(n>0) { @@ -2703,8 +2703,10 @@ void MainWindow::readFromStdout() //readFromStdout //Right (Rx Frequency) window bool bDisplayRight=bAvgMsg; + int audioFreq=decodedtext.frequencyOffset(); + if(m_mode=="FT8") audioFreq=decodedtext.string().mid(16,4).toInt(); if(!m_config.enable_VHF_features() and - (abs(decodedtext.frequencyOffset() - m_wideGraph->rxFreq()) <= 10)) bDisplayRight=true; + (abs(audioFreq - m_wideGraph->rxFreq()) <= 10)) bDisplayRight=true; if (bDisplayRight) { // This msg is within 10 hertz of our tuned frequency, or a JT4 or JT65 avg ui->decodedTextBrowser2->displayDecodedText(decodedtext,m_baseCall,false,