1
0
mirror of https://github.com/saitohirga/WSJT-X.git synced 2025-03-23 20:48:33 -04:00

Send Q65W decodes to PSK Reporter, from WSJT-X.

This commit is contained in:
Joe Taylor 2022-12-22 15:33:21 -05:00
parent 90b49ddc0a
commit 954d35bd52
2 changed files with 11 additions and 2 deletions

View File

@ -756,6 +756,7 @@ void MainWindow::decoderFinished() //diskWriteFinished
ui->DecodeButton->setStyleSheet("");
decodeBusy(false);
decodes_.nQDecoderDone=1;
if(m_diskData) decodes_.nQDecoderDone=2;
mem_q65w.lock();
memcpy((char*)ipc_wsjtx, &decodes_, sizeof(decodes_));
mem_q65w.unlock();
@ -763,8 +764,6 @@ void MainWindow::decoderFinished() //diskWriteFinished
t1=t1.asprintf(" %3d/%d ",decodes_.ndecodes,decodes_.ncand);
lab3->setText(t1);
QDateTime now=QDateTime::currentDateTimeUtc();
// float secToDecode=0.001*m_decoder_start_time.msecsTo(now);
// qDebug() << "bb" << "Decoder Finished" << t1 << secToDecode << now.toString("hh:mm:ss.z");
}
void MainWindow::on_actionDelete_all_iq_files_in_SaveDir_triggered()

View File

@ -9236,6 +9236,16 @@ void MainWindow::readWidebandDecodes()
m_EMECall[dxcall].worked=false; //### TEMPORARY ###
if(w3.contains(grid_regexp)) m_EMECall[dxcall].grid4=w3;
m_fetched++;
Frequency frequency = (m_freqNominal/1000000) * 1000000 + int(fsked*1000.0);
bool bCQ=line.contains(" CQ ");
bool bFromDisk=q65wcom.nQDecoderDone==2;
if(!bFromDisk and (m_EMECall[dxcall].grid4.contains(grid_regexp) or bCQ)) {
qDebug() << "To PSKreporter:" << dxcall << m_EMECall[dxcall].grid4 << frequency << m_mode << nsnr;
if (!m_psk_Reporter.addRemoteStation (dxcall, m_EMECall[dxcall].grid4, frequency, m_mode, nsnr)) {
showStatusMessage (tr ("Spotting to PSK Reporter unavailable"));
}
}
}
// Update "m_wEMECall" by reading q65w_decodes.txt