mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-28 23:28:49 -05:00
Reject bogus JT65 decodes with unreasonable values of DT.
This commit is contained in:
parent
f174367a5b
commit
4e4ae3ea9e
@ -147,6 +147,7 @@ subroutine map65a(dd,ss,savg,newdat,nutc,fcenter,ntol,idphi,nfa,nfb, &
|
|||||||
ssmax=1.e30
|
ssmax=1.e30
|
||||||
call ccf65(ss(1,1,i),nhsym,ssmax,sync1,ipol,jpz,dt, &
|
call ccf65(ss(1,1,i),nhsym,ssmax,sync1,ipol,jpz,dt, &
|
||||||
flipk,syncshort,snr2,ipol2,dt2)
|
flipk,syncshort,snr2,ipol2,dt2)
|
||||||
|
if(dt.lt.-2.6 .or. dt.gt.2.5) sync1=-99.0 !###
|
||||||
call timer('ccf65 ',1)
|
call timer('ccf65 ',1)
|
||||||
if(mode65.eq.0) syncshort=-99.0 !If "No JT65", don't waste time
|
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.
|
if(nqd.eq.1 .and. ntol.le.100) thresh1=0.
|
||||||
noffset=0
|
noffset=0
|
||||||
if(nqd.ge.1) noffset=nint(1000.0*(freq-fqso)-mousedf)
|
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
|
sync1=thresh1+1.0
|
||||||
noffset=0
|
noffset=0
|
||||||
first_loop=.false.
|
first_loop=.false.
|
||||||
|
@ -1143,6 +1143,10 @@ void MainWindow::diskDat() //diskDat()
|
|||||||
m_diskData=true;
|
m_diskData=true;
|
||||||
datcom_.newdat=1;
|
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*96000.0/11025.0; //Samples per JT65 half-symbol
|
||||||
if(!m_fs96000) hsym=2048.0*95238.1/11025.0;
|
if(!m_fs96000) hsym=2048.0*95238.1/11025.0;
|
||||||
for(int i=0; i<304; i++) { // Do the half-symbol FFTs
|
for(int i=0; i<304; i++) { // Do the half-symbol FFTs
|
||||||
|
Loading…
Reference in New Issue
Block a user