Protect against wacky settings of nfa, nfb, in Q65 mode.

This commit is contained in:
Joe Taylor 2023-10-17 13:59:08 -04:00
parent 64f53f30ff
commit ba453131eb
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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