From e480c47356f4b665b845c8bb57814f7468a12e50 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Thu, 13 May 2021 11:43:39 -0400 Subject: [PATCH] Wideband Q65 decoding basically works, and timeing is acceptable! Needs work to distinguish between nqd states. --- map65/libm65/map65a.f90 | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/map65/libm65/map65a.f90 b/map65/libm65/map65a.f90 index a202e4965..4967f7f2e 100644 --- a/map65/libm65/map65a.f90 +++ b/map65/libm65/map65a.f90 @@ -83,13 +83,10 @@ subroutine map65a(dd,ss,savg,newdat,nutc,fcenter,ntol,idphi,nfa,nfb, & 2 if(ndphi.eq.1) dphi=30*iloop/57.2957795 - nqdz=1 - if(bq65 .and. (nutc0.ge.0 .or. (nstandalone.eq.1))) nqdz=2 -! if(bq65) nqdz=2 if(nutc.ne.nutc0) nfile=nfile+1 nutc0=nutc - do nqd=nqdz,0,-1 + do nqd=1,0,-1 if(nqd.eq.2) then fa=1000.0*fqso fb=1000.0*fqso @@ -251,13 +248,6 @@ subroutine map65a(dd,ss,savg,newdat,nutc,fcenter,ntol,idphi,nfa,nfb, & ndphi,nutc,ikHz,idf,ipol,ntol,sync2, & a,dt,pol,nkv,nhist,nsum,nsave,qual,decoded) call timer('decode1a',1) - if(nqd.eq.2) then - call timer('q65b ',0) - call q65b(nutc,fcenter,nfcal,nfsample,ikhz, & - mousedf,ntol,xpol,mycall,hiscall,hisgrid,mode_q65) - call timer('q65b ',1) - cycle - endif if(km.lt.MAXMSG) km=km+1 sig(km,1)=nfile @@ -385,7 +375,22 @@ subroutine map65a(dd,ss,savg,newdat,nutc,fcenter,ntol,idphi,nfa,nfb, & endif if(nqd.eq.2 .and. mode65.eq.0) go to 999 if(nqd.eq.1 .and. nagain.eq.1) go to 999 - enddo + +! if(nqd.eq.0) cycle + do k=1,ncand + if(cand(k)%iflip.ne.0) cycle + freq=cand(k)%f+77.0-1.27046 + ikhz=nint(freq) +! write(*,3010) nutc,k,cand(k)%snr,cand(k)%f,freq,cand(k)%xdt, & +! cand(k)%ipol,cand(k)%iflip +!3010 format('= ',i4.4,i5,f10.1,3f10.3,2i3) + call timer('q65b ',0) + call q65b(nutc,fcenter,nfcal,nfsample,ikhz, & + mousedf,ntol,xpol,mycall,hiscall,hisgrid,mode_q65) + call timer('q65b ',1) + enddo + + enddo ! nqd ! Trim the list and produce a sorted index and sizes of groups. ! (Should trimlist remove all but best SNR for given UTC and message content?)