Updated to refresh rx activity at least once per cycle

This commit is contained in:
Jordan Sherer 2018-07-12 14:15:18 -04:00
parent 91d6836fa5
commit 64b5ebbdd2
2 changed files with 23 additions and 2 deletions

View File

@ -3108,7 +3108,7 @@ void MainWindow::readFromStdout() //readFromStdout
m_config.color_DXCC(), m_config.color_NewCall(), m_config.color_DXCC(), m_config.color_NewCall(),
m_config.ppfx(),(ui->cbCQonly->isVisible() and ui->cbCQonly->isChecked())); m_config.ppfx(),(ui->cbCQonly->isVisible() and ui->cbCQonly->isChecked()));
// TODO: parse decode... // Parse General Activity
if(decodedtext.messageWords().length() > 0){ if(decodedtext.messageWords().length() > 0){
int offset = decodedtext.frequencyOffset(); int offset = decodedtext.frequencyOffset();
@ -3144,6 +3144,7 @@ void MainWindow::readFromStdout() //readFromStdout
} }
} }
// Parse CQs
QString cqCall = decodedtext.CQersCall(); QString cqCall = decodedtext.CQersCall();
if(!cqCall.isEmpty()){ if(!cqCall.isEmpty()){
QString theircall; QString theircall;
@ -3158,6 +3159,19 @@ void MainWindow::readFromStdout() //readFromStdout
d.utcTimestamp = QDateTime::currentDateTimeUtc(); d.utcTimestamp = QDateTime::currentDateTimeUtc();
m_callActivity[cqCall] = d; 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(nsec != m_sec0) {
if(m_freqNominal!=0 and m_freqNominal<50000000 and m_config.enable_VHF_features()) { if(m_freqNominal!=0 and m_freqNominal<50000000 and m_config.enable_VHF_features()) {
if(!m_bVHFwarned) vhfWarning(); if(!m_bVHFwarned) vhfWarning();
@ -3946,6 +3960,12 @@ void MainWindow::guiUpdate()
m_sec0=nsec; m_sec0=nsec;
// once per period
if(m_sec0 % m_TRperiod == 0){
m_rxDirty = true;
}
displayDialFrequency (); displayDialFrequency ();
displayActivity(); displayActivity();

View File

@ -39,6 +39,7 @@
#include "MessageBox.hpp" #include "MessageBox.hpp"
#include "NetworkAccessManager.hpp" #include "NetworkAccessManager.hpp"
#include "qorderedmap.h" #include "qorderedmap.h"
#include "varicode.h"
#define NUM_JT4_SYMBOLS 206 //(72+31)*2, embedded sync #define NUM_JT4_SYMBOLS 206 //(72+31)*2, embedded sync
#define NUM_JT65_SYMBOLS 126 //63 data + 63 sync #define NUM_JT65_SYMBOLS 126 //63 data + 63 sync