WIP on IPC.

This commit is contained in:
Joe Taylor 2022-12-14 16:54:37 -05:00
parent ca9406664e
commit cbad491438
2 changed files with 54 additions and 48 deletions

View File

@ -94,6 +94,10 @@ void ActiveStations::select()
if((msec-m_msec0)<500) return;
m_msec0=msec;
int nline=ui->RecentStationsPlainTextEdit->textCursor().blockNumber();
qDebug() << "aa" << nline << ui->RecentStationsPlainTextEdit->textCursor().position();
if(nline!=-99) return; //TEMPORARY
emit callSandP(nline);
}
}

View File

@ -213,12 +213,12 @@ bool keep_frequency = false;
QSharedMemory mem_q65w("mem_q65w"); //Memory segment to be shared (optionally) with Q65W
struct {
int ndecodes;
int ncand;
// int nDecoderDone;
// int nDecoderBusy;
// int nTransmitting;
char result[50][60];
int ndecodes; //Number of Q65W decodes available (so far)
int ncand; //Number of Q65W candidates considered for decoding
int nQDecoderDone; //Q65W decoder is finished (0 or 1)
int nWDecoderBusy; //WSJT-X decoder is busy (0 or 1)
int nWTransmitting; //WSJT-X is transmitting (0 or 1)
char result[50][60]; //Decodes as character*60 arrays
} q65wcom;
int* ipc_q65w;
@ -3687,6 +3687,7 @@ void MainWindow::callSandP2(int n)
m_deGrid="";
m_txFirst=(w[i0+1]=="0");
ui->TxFreqSpinBox->setValue(1500);
qDebug() << "bb" << n << w;
} else {
m_deCall=w[0];
m_deGrid=w[1];
@ -9222,8 +9223,8 @@ void MainWindow::readWidebandDecodes()
m_EMECall[dxcall].t=60*nhr + nmin;
m_EMECall[dxcall].worked=false; //### TEMPORARY ###
if(w3.contains(grid_regexp)) m_EMECall[dxcall].grid4=w3;
qDebug() << "aa" << q65wcom.ndecodes << m_fetched << line;
m_fetched++;
// qDebug() << "aa" << q65wcom.ndecodes << m_fetched << q65wcom.nQDecoderDone << line;
}
// Update "m_wEMECall" by reading q65w_decodes.txt
@ -9272,8 +9273,9 @@ void MainWindow::readWidebandDecodes()
if(m_ActiveStationsWidget != NULL) {
m_ActiveStationsWidget->erase();
m_ActiveStationsWidget->displayRecentStations(m_mode,t);
m_ActiveStationsWidget->setClickOK(true);
}
if(q65wcom.nQDecoderDone==1) m_fetched=0;
}
// -------------------------- Code for FT8 DXpedition Mode ---------------------------