mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-08-03 14:42:25 -04:00
Correct some logic so that AP is only on when selected and so that AP decodes of type 4 or greater are limited to the vicinity of nfqso or nftx.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7961 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
f6d0bd7787
commit
1110902285
@ -36,6 +36,7 @@ subroutine ft8b(dd0,newdat,nQSOProgress,nfqso,nftx,ndepth,lapon,napwid, &
|
|||||||
|
|
||||||
if(first) then
|
if(first) then
|
||||||
mcq=2*mcq-1
|
mcq=2*mcq-1
|
||||||
|
mde=2*mde-1
|
||||||
mrrr=2*mrrr-1
|
mrrr=2*mrrr-1
|
||||||
m73=2*m73-1
|
m73=2*m73-1
|
||||||
mrr73=2*mrr73-1
|
mrr73=2*mrr73-1
|
||||||
@ -78,9 +79,9 @@ subroutine ft8b(dd0,newdat,nQSOProgress,nfqso,nftx,ndepth,lapon,napwid, &
|
|||||||
call ft8_downsample(dd0,newdat,f1,cd0) !Mix f1 to baseband and downsample
|
call ft8_downsample(dd0,newdat,f1,cd0) !Mix f1 to baseband and downsample
|
||||||
call timer('ft8_down',1)
|
call timer('ft8_down',1)
|
||||||
|
|
||||||
i0=nint((xdt+0.5)*fs2) !Initial guess for start of signal
|
i0=nint((xdt+0.5)*fs2) !Initial guess for start of signal
|
||||||
smax=0.0
|
smax=0.0
|
||||||
do idt=i0-8,i0+8 !Search over +/- one quarter symbol
|
do idt=i0-8,i0+8 !Search over +/- one quarter symbol
|
||||||
call sync8d(cd0,idt,ctwk,0,sync)
|
call sync8d(cd0,idt,ctwk,0,sync)
|
||||||
if(sync.gt.smax) then
|
if(sync.gt.smax) then
|
||||||
smax=sync
|
smax=sync
|
||||||
@ -222,10 +223,6 @@ subroutine ft8b(dd0,newdat,nQSOProgress,nfqso,nftx,ndepth,lapon,napwid, &
|
|||||||
llr0=2.0*rxdata/(ss*ss)
|
llr0=2.0*rxdata/(ss*ss)
|
||||||
llra=2.0*rxdatap/(ss*ss) ! llr's for use with ap
|
llra=2.0*rxdatap/(ss*ss) ! llr's for use with ap
|
||||||
apmag=4.0
|
apmag=4.0
|
||||||
! If DxCall exists, only do "MyCall DxCall ???" for candidates within nfqso +/- napwid
|
|
||||||
nap=0
|
|
||||||
if(lapon.and.(iaptype.eq.1 .or. (iaptype.eq.2.and.abs(nfqso-f1).le.napwid))) nap=2
|
|
||||||
if(lapon.and.iaptype.eq.2.and.abs(nfqso-f1).gt.napwid) nap=1
|
|
||||||
|
|
||||||
! pass #
|
! pass #
|
||||||
!------------------------------
|
!------------------------------
|
||||||
@ -237,7 +234,12 @@ subroutine ft8b(dd0,newdat,nQSOProgress,nfqso,nftx,ndepth,lapon,napwid, &
|
|||||||
! 6 ap pass 3
|
! 6 ap pass 3
|
||||||
! 7 ap pass 4, etc.
|
! 7 ap pass 4, etc.
|
||||||
|
|
||||||
npasses=1+2+nappasses(nQSOProgress)
|
if(lapon) then
|
||||||
|
npasses=3+nappasses(nQSOProgress)
|
||||||
|
else
|
||||||
|
npasses=3
|
||||||
|
endif
|
||||||
|
|
||||||
do ipass=1,npasses
|
do ipass=1,npasses
|
||||||
|
|
||||||
llr=llr0
|
llr=llr0
|
||||||
@ -254,6 +256,7 @@ subroutine ft8b(dd0,newdat,nQSOProgress,nfqso,nftx,ndepth,lapon,napwid, &
|
|||||||
|
|
||||||
if(ipass .gt. 3) then
|
if(ipass .gt. 3) then
|
||||||
iaptype=naptypes(nQSOProgress,ipass-3)
|
iaptype=naptypes(nQSOProgress,ipass-3)
|
||||||
|
if(iaptype.ge.4 .and. (abs(f1-nfqso).gt.napwid .and. abs(f1-nftx).gt.napwid) ) cycle
|
||||||
if(iaptype.eq.1 .or. iaptype.eq.2 .or. iaptype.eq.3) then ! AP,???,???
|
if(iaptype.eq.1 .or. iaptype.eq.2 .or. iaptype.eq.3) then ! AP,???,???
|
||||||
apmask=0
|
apmask=0
|
||||||
apmask(88:115)=1 ! first 28 bits are AP
|
apmask(88:115)=1 ! first 28 bits are AP
|
||||||
|
Loading…
x
Reference in New Issue
Block a user