From 64b5ebbdd2874b687a4161c1fcc7daf99250ac92 Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Thu, 12 Jul 2018 14:15:18 -0400 Subject: [PATCH] Updated to refresh rx activity at least once per cycle --- mainwindow.cpp | 24 ++++++++++++++++++++++-- mainwindow.h | 1 + 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 2309977..6069b92 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -3108,7 +3108,7 @@ void MainWindow::readFromStdout() //readFromStdout m_config.color_DXCC(), m_config.color_NewCall(), m_config.ppfx(),(ui->cbCQonly->isVisible() and ui->cbCQonly->isChecked())); - // TODO: parse decode... + // Parse General Activity if(decodedtext.messageWords().length() > 0){ int offset = decodedtext.frequencyOffset(); @@ -3144,6 +3144,7 @@ void MainWindow::readFromStdout() //readFromStdout } } + // Parse CQs QString cqCall = decodedtext.CQersCall(); if(!cqCall.isEmpty()){ QString theircall; @@ -3158,6 +3159,19 @@ void MainWindow::readFromStdout() //readFromStdout d.utcTimestamp = QDateTime::currentDateTimeUtc(); m_callActivity[cqCall] = d; } + + // TOD0: jsherer - parse for callsigns? + // K1JT KN4CRD EM73 + // KN4CRD K1JT -21 + // K1JT KN4CRD R-12 + // DE KN4CRD + // KN4CRD + QString messageText = decodedtext.string(); + + // TOD0: jsherer - parse for commands? + // KN4CRD K1JT ? + + } } @@ -3839,7 +3853,7 @@ void MainWindow::guiUpdate() } } -//Once per second: + //Once per second: if(nsec != m_sec0) { if(m_freqNominal!=0 and m_freqNominal<50000000 and m_config.enable_VHF_features()) { if(!m_bVHFwarned) vhfWarning(); @@ -3946,6 +3960,12 @@ void MainWindow::guiUpdate() m_sec0=nsec; + + // once per period + if(m_sec0 % m_TRperiod == 0){ + m_rxDirty = true; + } + displayDialFrequency (); displayActivity(); diff --git a/mainwindow.h b/mainwindow.h index 9b3b6b4..fe4c1a8 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -39,6 +39,7 @@ #include "MessageBox.hpp" #include "NetworkAccessManager.hpp" #include "qorderedmap.h" +#include "varicode.h" #define NUM_JT4_SYMBOLS 206 //(72+31)*2, embedded sync #define NUM_JT65_SYMBOLS 126 //63 data + 63 sync