diff --git a/lib/decoder.f90 b/lib/decoder.f90 index a56193fd1..575fe971d 100644 --- a/lib/decoder.f90 +++ b/lib/decoder.f90 @@ -42,7 +42,7 @@ subroutine decoder(ss,c0) else if(ntrMinutes.eq.5) then nsps=40960 df3=1500.0/6144.0 - fmt='(i4.4,i4,i5,f6.1,f8.1,i4,3x,a22)' + fmt='(i4.4,i4,i5,f6.1,f8.1,i4,3x,a22)' else if(ntrMinutes.eq.10) then nsps=82944 df3=1500.0/12288.0 @@ -56,6 +56,7 @@ subroutine decoder(ss,c0) kstep=nsps/2 tstep=kstep/12000.0 + tstep=0.5*tstep idf=ntol/df3 + 0.999 do nqd=1,0,-1 @@ -122,8 +123,6 @@ subroutine decoder(ss,c0) call timer('decode9 ',0) call decode9(i1SoftSymbols,limit,nlim,msg) -! write(69,3300) nqd,i,f+1000.0,ccflim,ccfred(i),limit,nlim,msg(1:18) -!3300 format(i1,i6,f10.3,2f8.1,2i9,2x,a18) call timer('decode9 ',1) sync=(syncpk+1)/4.0 @@ -135,6 +134,8 @@ subroutine decoder(ss,c0) if(msg.ne.' ') then write(*,fmt) nutc,nsync,nsnr,xdt,freq,ndrift,msg write(13,fmt) nutc,nsync,nsnr,xdt,freq,ndrift,msg +! write(14,1014) nutc,nsync,nsnr,xdt,freq,ndrift,ccfred(i),nlim,msg +!1014 format(i4.4,i4,i5,f6.1,f8.0,i4,f9.1,i9,3x,a22) fgood=f nsynced=1 ndecoded=1 @@ -151,7 +152,7 @@ subroutine decoder(ss,c0) 1010 format('',2i4) call flush(6) close(13) -! call flush(69) +! call flush(14) call timer('decoder ',1) if(nstandalone.eq.0) call timer('decoder ',101) diff --git a/mainwindow.cpp b/mainwindow.cpp index 1a70d00a5..ffb972844 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -176,6 +176,7 @@ MainWindow::MainWindow(QSharedMemory *shdmem, QWidget *parent) : m_sent73=false; m_watchdogLimit=5; m_tune=false; + m_repeatMsg=0; decodeBusy(false); ui->xThermo->setFillBrush(Qt::green); @@ -704,6 +705,7 @@ void MainWindow::on_autoButton_clicked() //Auto btxok=false; ui->autoButton->setStyleSheet(""); on_monitorButton_clicked(); + m_repeatMsg=0; } } @@ -712,6 +714,7 @@ void MainWindow::on_stopTxButton_clicked() //Stop Tx if(m_tune) on_tuneButton_clicked(); if(m_auto) on_autoButton_clicked(); btxok=false; + m_repeatMsg=0; } void MainWindow::keyPressEvent( QKeyEvent *e ) //keyPressEvent @@ -2403,6 +2406,7 @@ void MainWindow::on_bandComboBox_currentIndexChanged(int index) QString t=m_dFreq[index]; m_dialFreq=t.toDouble(); dialFreqChanged2(m_dialFreq); + m_repeatMsg=0; if(m_catEnabled) { int nHz=int(1000000.0*m_dialFreq + 0.5); QString cmnd1,cmnd3; diff --git a/mainwindow.h b/mainwindow.h index c7c9f2fcf..89b9b471a 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -365,7 +365,7 @@ void morse_(char* msg, int* icw, int* ncw, int len); //void rig_control(int nrig, int verbose); -void rigOpen(int nrig, int verbose); +int rigOpen(int nrig, int verbose); void rigSetFreq(int fHz); int rigFreq(); diff --git a/mainwindow.ui b/mainwindow.ui index cc3a6602a..15c351b70 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -1805,48 +1805,69 @@ p, li { white-space: pre-wrap; } - + Call CQ - + Answer Caller - + Answer CQ - + Send RRR - + Send Report - + Send 73 + + + + Call CQ and +answer callers + + + Qt::AlignCenter + + + + + + + Answering CQ + + + Qt::AlignCenter + + +