mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-07-18 09:35:17 -04:00
Some temporary commits, for testing. Includes some diagnostic prints!
This commit is contained in:
parent
6ec9466dc1
commit
08d9ebaf1a
@ -1,7 +1,7 @@
|
|||||||
subroutine q65b(nutc,nqd,fcenter,nfcal,nfsample,ikhz,mousedf,ntol, &
|
subroutine q65b(nutc,nqd,fcenter,nfcal,nfsample,ikhz,mousedf,ntol, &
|
||||||
ntrperiod,iseq, &
|
ntrperiod,iseq,mycall0,hiscall0,hisgrid,mode_q65,f0,fqso,nkhz_center, &
|
||||||
mycall0,hiscall0,hisgrid,mode_q65,f0,fqso,nkhz_center, newdat,nagain, &
|
newdat,nagain,bClickDecode,max_drift,offset,ndepth,datetime,nCFOM, &
|
||||||
max_drift,offset,ndepth,datetime,nCFOM,ndop00,idec)
|
ndop00,idec)
|
||||||
|
|
||||||
! This routine provides an interface between QMAP and the Q65 decoder
|
! This routine provides an interface between QMAP and the Q65 decoder
|
||||||
! in WSJT-X. All arguments are input data obtained from the QMAP GUI.
|
! in WSJT-X. All arguments are input data obtained from the QMAP GUI.
|
||||||
@ -20,6 +20,7 @@ subroutine q65b(nutc,nqd,fcenter,nfcal,nfsample,ikhz,mousedf,ntol, &
|
|||||||
complex ca(MAXFFT1) !FFT of raw I/Q data from Linrad
|
complex ca(MAXFFT1) !FFT of raw I/Q data from Linrad
|
||||||
complex cx(0:MAXFFT2-1),cz(0:MAXFFT2)
|
complex cx(0:MAXFFT2-1),cz(0:MAXFFT2)
|
||||||
real*8 fcenter,freq0,freq1
|
real*8 fcenter,freq0,freq1
|
||||||
|
logical*1 bClickDecode
|
||||||
character*12 mycall0,hiscall0
|
character*12 mycall0,hiscall0
|
||||||
character*12 mycall,hiscall
|
character*12 mycall,hiscall
|
||||||
character*6 hisgrid
|
character*6 hisgrid
|
||||||
@ -110,15 +111,17 @@ subroutine q65b(nutc,nqd,fcenter,nfcal,nfsample,ikhz,mousedf,ntol, &
|
|||||||
! NB: Frequency of ipk is now shifted to 1000 Hz.
|
! NB: Frequency of ipk is now shifted to 1000 Hz.
|
||||||
call map65_mmdec(nutc1,iwave,nqd,ntrperiod,nsubmode,nfa,nfb,1000,ntol, &
|
call map65_mmdec(nutc1,iwave,nqd,ntrperiod,nsubmode,nfa,nfb,1000,ntol, &
|
||||||
newdat,nagain,max_drift,ndepth,mycall,hiscall,hisgrid)
|
newdat,nagain,max_drift,ndepth,mycall,hiscall,hisgrid)
|
||||||
MHz=fcenter
|
MHz=fcenter
|
||||||
freq0=MHz + 0.001d0*ikhz
|
freq0=MHz + 0.001d0*ikhz
|
||||||
|
|
||||||
if(nsnr0.gt.-99) then
|
if(nsnr0.gt.-99) then
|
||||||
|
|
||||||
do i=1,ndecodes !Check for dupes
|
if(.not.bClickDecode) then
|
||||||
i1=index(result(i)(42:),trim(msg0))
|
do i=1,ndecodes !Check for dupes
|
||||||
if(i1.gt.0) go to 800 !This is a dupe, don't save it again
|
i1=index(result(i)(42:),trim(msg0))
|
||||||
enddo
|
if(i1.gt.0) go to 800 !This is a dupe, don't save it again
|
||||||
|
enddo
|
||||||
|
endif
|
||||||
|
|
||||||
nq65df=nint(1000*(0.001*k0*df+nkhz_center-48.0+1.000-1.27046-ikhz))-nfcal
|
nq65df=nint(1000*(0.001*k0*df+nkhz_center-48.0+1.000-1.27046-ikhz))-nfcal
|
||||||
nq65df=nq65df + nfreq0 - 1000
|
nq65df=nq65df + nfreq0 - 1000
|
||||||
@ -130,6 +133,7 @@ subroutine q65b(nutc,nqd,fcenter,nfcal,nfsample,ikhz,mousedf,ntol, &
|
|||||||
freq1=freq0 + 0.001d0*(ikhz1-ikhz)
|
freq1=freq0 + 0.001d0*(ikhz1-ikhz)
|
||||||
frx=0.001*k0*df+nkhz_center-48.0+1.0 - 0.001*nfcal
|
frx=0.001*k0*df+nkhz_center-48.0+1.0 - 0.001*nfcal
|
||||||
fsked=frx - 0.001*ndop00/2.0 - 0.001*offset
|
fsked=frx - 0.001*ndop00/2.0 - 0.001*offset
|
||||||
|
print*,'B',nCFOM,ndop00,frx,fsked,nsnr0,bClickDecode
|
||||||
if(iand(nCFOM,2).eq.2) write(*,3001) nCFOM,ndop00,frx,fsked
|
if(iand(nCFOM,2).eq.2) write(*,3001) nCFOM,ndop00,frx,fsked
|
||||||
3001 format('A',i5,i8,f10.3,f10.1)
|
3001 format('A',i5,i8,f10.3,f10.1)
|
||||||
ctmp=csubmode//' '//trim(msg0)
|
ctmp=csubmode//' '//trim(msg0)
|
||||||
|
@ -44,6 +44,7 @@ subroutine q65c(itimer)
|
|||||||
call chkstat(dd,max_nhsym,bSkip)
|
call chkstat(dd,max_nhsym,bSkip)
|
||||||
if(bSkip) return
|
if(bSkip) return
|
||||||
|
|
||||||
|
print*,'A'
|
||||||
call timer('decode0 ',0)
|
call timer('decode0 ',0)
|
||||||
call decode0(dd,ss,savg)
|
call decode0(dd,ss,savg)
|
||||||
call timer('decode0 ',1)
|
call timer('decode0 ',1)
|
||||||
|
@ -24,7 +24,7 @@ subroutine qmapa(dd,ss,savg,newdat,nutc,fcenter,ntol,nfa,nfb, &
|
|||||||
real ss(400,NFFT) !Symbol spectra
|
real ss(400,NFFT) !Symbol spectra
|
||||||
real savg(NFFT) !Average spectrum
|
real savg(NFFT) !Average spectrum
|
||||||
real*8 fcenter !Center RF frequency, MHz
|
real*8 fcenter !Center RF frequency, MHz
|
||||||
logical*1 bAlso30
|
logical*1 bAlso30,bClickDecode
|
||||||
character mycall*12,hiscall*12,hisgrid*6
|
character mycall*12,hiscall*12,hisgrid*6
|
||||||
type(candidate) :: cand(MAX_CANDIDATES)
|
type(candidate) :: cand(MAX_CANDIDATES)
|
||||||
character*60 result
|
character*60 result
|
||||||
@ -53,6 +53,7 @@ subroutine qmapa(dd,ss,savg,newdat,nutc,fcenter,ntol,nfa,nfb, &
|
|||||||
foffset=0.001*(1270 + nfcal) !Offset from sync tone, plus CAL
|
foffset=0.001*(1270 + nfcal) !Offset from sync tone, plus CAL
|
||||||
fqso=mousefqso + foffset - 0.5*(nfa+nfb) + nfshift !fqso at baseband (khz)
|
fqso=mousefqso + foffset - 0.5*(nfa+nfb) + nfshift !fqso at baseband (khz)
|
||||||
nqd=0
|
nqd=0
|
||||||
|
bClickDecode=(nagain.eq.1)
|
||||||
nagain2=0
|
nagain2=0
|
||||||
|
|
||||||
call timer('filbig ',0)
|
call timer('filbig ',0)
|
||||||
@ -69,10 +70,10 @@ subroutine qmapa(dd,ss,savg,newdat,nutc,fcenter,ntol,nfa,nfb, &
|
|||||||
ikhz=nint(freq)
|
ikhz=nint(freq)
|
||||||
idec=-1
|
idec=-1
|
||||||
call timer('q65b ',0)
|
call timer('q65b ',0)
|
||||||
call q65b(nutc,nqd,fcenter,nfcal,nfsample,ikhz,mousedf,ntol, &
|
call q65b(nutc,nqd,fcenter,nfcal,nfsample,ikhz,mousedf,ntol, &
|
||||||
ntrperiod,iseq, &
|
ntrperiod,iseq,mycall,hiscall,hisgrid,mode_q65_tmp,f0,fqso, &
|
||||||
mycall,hiscall,hisgrid,mode_q65_tmp,f0,fqso,nkhz_center,newdat, &
|
nkhz_center,newdat,nagain2,bClickDecode,max_drift,offset, &
|
||||||
nagain2,max_drift,offset,ndepth,datetime,nCFOM,ndop00,idec)
|
ndepth,datetime,nCFOM,ndop00,idec)
|
||||||
call timer('q65b ',1)
|
call timer('q65b ',1)
|
||||||
tsec=sec_midn() - tsec0
|
tsec=sec_midn() - tsec0
|
||||||
! Don't start another decode attempt if it's too late...
|
! Don't start another decode attempt if it's too late...
|
||||||
|
@ -748,6 +748,7 @@ void MainWindow::diskWriteFinished() //diskWriteFinished
|
|||||||
|
|
||||||
void MainWindow::decoderFinished() //diskWriteFinished
|
void MainWindow::decoderFinished() //diskWriteFinished
|
||||||
{
|
{
|
||||||
|
qDebug() << "bb Decoder Finished";
|
||||||
ui->DecodeButton->setStyleSheet("");
|
ui->DecodeButton->setStyleSheet("");
|
||||||
decodeBusy(false);
|
decodeBusy(false);
|
||||||
m_startAnother=m_loopall;
|
m_startAnother=m_loopall;
|
||||||
@ -909,7 +910,7 @@ void MainWindow::decode() //decode()
|
|||||||
char *from = (char*) datcom_.d4;
|
char *from = (char*) datcom_.d4;
|
||||||
memcpy(to, from, sizeof(datcom_));
|
memcpy(to, from, sizeof(datcom_));
|
||||||
|
|
||||||
datcom_.nagain=0;
|
// datcom_.nagain=0;
|
||||||
datcom_.ndiskdat=0;
|
datcom_.ndiskdat=0;
|
||||||
m_call3Modified=false;
|
m_call3Modified=false;
|
||||||
|
|
||||||
@ -921,6 +922,7 @@ void MainWindow::decode() //decode()
|
|||||||
decodes_.nQDecoderDone=0;
|
decodes_.nQDecoderDone=0;
|
||||||
if(m_nTx30<5) {
|
if(m_nTx30<5) {
|
||||||
int itimer=0;
|
int itimer=0;
|
||||||
|
qDebug() << "aa" << datcom_.nagain;
|
||||||
watcher3.setFuture(QtConcurrent::run (std::bind (q65c_, &itimer)));
|
watcher3.setFuture(QtConcurrent::run (std::bind (q65c_, &itimer)));
|
||||||
decodeBusy(true);
|
decodeBusy(true);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user