Reject bogus JT65 decodes with unreasonable values of DT.

This commit is contained in:
Joe Taylor 2021-05-17 13:01:20 -04:00
parent f174367a5b
commit 4e4ae3ea9e
2 changed files with 6 additions and 1 deletions

View File

@ -147,6 +147,7 @@ subroutine map65a(dd,ss,savg,newdat,nutc,fcenter,ntol,idphi,nfa,nfb, &
ssmax=1.e30
call ccf65(ss(1,1,i),nhsym,ssmax,sync1,ipol,jpz,dt, &
flipk,syncshort,snr2,ipol2,dt2)
if(dt.lt.-2.6 .or. dt.gt.2.5) sync1=-99.0 !###
call timer('ccf65 ',1)
if(mode65.eq.0) syncshort=-99.0 !If "No JT65", don't waste time
@ -214,7 +215,7 @@ subroutine map65a(dd,ss,savg,newdat,nutc,fcenter,ntol,idphi,nfa,nfb, &
if(nqd.eq.1 .and. ntol.le.100) thresh1=0.
noffset=0
if(nqd.ge.1) noffset=nint(1000.0*(freq-fqso)-mousedf)
if(first_loop) then !### For Q65 changes ??? ###
if(first_loop .and. sync1.gt.0.0) then
sync1=thresh1+1.0
noffset=0
first_loop=.false.

View File

@ -1143,6 +1143,10 @@ void MainWindow::diskDat() //diskDat()
m_diskData=true;
datcom_.newdat=1;
// if(g_pWideGraph->m_bForceCenterFreq) datcom_.fcenter=g_pWideGraph->m_dForceCenterFreq;
// qDebug() << "aa" << datcom_.fcenter << g_pWideGraph->m_dForceCenterFreq
// << g_pWideGraph->m_bForceCenterFreq;
if(m_fs96000) hsym=2048.0*96000.0/11025.0; //Samples per JT65 half-symbol
if(!m_fs96000) hsym=2048.0*95238.1/11025.0;
for(int i=0; i<304; i++) { // Do the half-symbol FFTs