summaryrefslogtreecommitdiff
path: root/lib/decode65a.f90
diff options
context:
space:
mode:
authorEnrico Rossi <e.rossi@tecnobrain.com>2018-11-03 17:52:26 +0100
committerEnrico Rossi <e.rossi@tecnobrain.com>2018-11-03 17:52:26 +0100
commitb4aebf2d137b892f53503b13785ecae900062ff7 (patch)
tree3ba99b2baec2292f2e13bfe90a5e401a5f4c47a5 /lib/decode65a.f90
parent37f727ac0746fd85504aa46c1f023c09b3eff33a (diff)
New upstream version 1.9.1+repackupstream/1.9.1+repack
* Drop local hamlib copy (commit d1b545be). * Drop local boost copy (1.63.0).
Diffstat (limited to 'lib/decode65a.f90')
-rw-r--r--lib/decode65a.f9018
1 files changed, 10 insertions, 8 deletions
diff --git a/lib/decode65a.f90 b/lib/decode65a.f90
index 5ad31677..c41136a5 100644
--- a/lib/decode65a.f90
+++ b/lib/decode65a.f90
@@ -1,5 +1,6 @@
subroutine decode65a(dd,npts,newdat,nqd,f0,nflip,mode65,ntrials, &
- naggressive,ndepth,ntol,mycall,hiscall,hisgrid,nexp_decode, &
+ naggressive,ndepth,ntol,mycall,hiscall,hisgrid,nQSOProgress, &
+ ljt65apon, nexp_decode, &
bVHF,sync2,a,dt,nft,nspecial,qual,nhist,nsmo,decoded)
! Apply AFC corrections to a candidate JT65 signal, then decode it.
@@ -15,7 +16,7 @@ subroutine decode65a(dd,npts,newdat,nqd,f0,nflip,mode65,ntrials, &
complex c5a(512)
real s2(66,126)
real a(5)
- logical bVHF,first
+ logical bVHF,first,ljt65apon
character decoded*22,decoded_best*22
character mycall*12,hiscall*12,hisgrid*6
character*27 cr
@@ -48,9 +49,9 @@ subroutine decode65a(dd,npts,newdat,nqd,f0,nflip,mode65,ntrials, &
fsample=1378.125/4.
call timer('afc65b ',0)
-! Best fit for DF, drift, banana-coefficient, and dt. fsample = 344.53125 S/s
+! Best fit for DF, drift, and dt. fsample = 344.53125 S/s
dtbest=dt
- call afc65b(c5x,n6,fsample,nflip,a,ccfbest,dtbest)
+ call afc65b(c5x,n6,fsample,nflip,mode65,a,ccfbest,dtbest)
call timer('afc65b ',1)
dtbest=dtbest+0.003628 !Remove decimation filter and coh. integrator delay
dt=dtbest !Return new, improved estimate of dt
@@ -97,8 +98,8 @@ subroutine decode65a(dd,npts,newdat,nqd,f0,nflip,mode65,ntrials, &
minsmo=0
maxsmo=0
if(mode65.ge.2 .and. mode65.ne.101) then
- minsmo=nint(width/df)
- maxsmo=2*minsmo
+ minsmo=nint(width/df)-1
+ maxsmo=2*nint(width/df)
endif
nn=0
do ismo=minsmo,maxsmo
@@ -122,10 +123,11 @@ subroutine decode65a(dd,npts,newdat,nqd,f0,nflip,mode65,ntrials, &
endif
s2(i,1:126)=s1(jj,1:126)
enddo
-
nadd=ismo !### ??? ###
call decode65b(s2,nflip,nadd,mode65,ntrials,naggressive,ndepth, &
- mycall,hiscall,hisgrid,nexp_decode,nqd,nft,qual,nhist,decoded)
+ mycall,hiscall,hisgrid,nQSOProgress,ljt65apon,nexp_decode, &
+ nqd,nft,qual, &
+ nhist,decoded)
if(nft.eq.1) then
nsmo=ismo