mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-04-04 10:28:33 -04:00
Protect against wacky settings of nfa, nfb, in Q65 mode.
This commit is contained in:
parent
64f53f30ff
commit
ba453131eb
@ -490,12 +490,12 @@ subroutine q65_ccf_22(s1,iz,jz,nfqso,ntol,iavg,ipk,jpk, &
|
||||
ia=max(nint(100/df),nint((nfqso-ntol)/df))
|
||||
ib=min(nint(4900/df),nint((nfqso+ntol)/df))
|
||||
endif
|
||||
if(ia.ge.ib) ia=ib-ntol/df !Protect against wacky settings
|
||||
|
||||
do i=ia,ib
|
||||
s1avg(i)=sum(s1(i,1:jz))
|
||||
enddo
|
||||
|
||||
call pctile(s1avg(ia:ib),ib-ia+1,40,base0)
|
||||
ccfbest=0.
|
||||
ibest=0
|
||||
lagpk=0
|
||||
|
@ -1683,6 +1683,7 @@ void MainWindow::dataSink(qint64 frames)
|
||||
int idir=-1;
|
||||
save_echo_params_(&nDopTotal,&nDop,&nfrit,&f1,&width,dec_data.d2,&idir);
|
||||
}
|
||||
qDebug() << "aa" << k << frames << m_ihsym << m_hsymStop;
|
||||
avecho_(dec_data.d2,&nDop,&nfrit,&nauto,&navg,&nqual,&f1,&xlevel,&sigdb,
|
||||
&dBerr,&dfreq,&width,&m_diskData);
|
||||
//Don't restart Monitor after an Echo transmission
|
||||
|
Loading…
Reference in New Issue
Block a user