mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-06-25 22:45:18 -04:00
Reject candiates with fewer than 7 correct hard-decoded sync symbols.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7946 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
dc5305573d
commit
7b8a86dca7
@ -16,10 +16,12 @@ subroutine ft8b(dd0,newdat,nfqso,ndepth,lapon,napwid,lsubtract,iaptype,icand, &
|
|||||||
integer*1 msgbits(KK)
|
integer*1 msgbits(KK)
|
||||||
integer apsym(KK),rr73(11),cq(28)
|
integer apsym(KK),rr73(11),cq(28)
|
||||||
integer itone(NN)
|
integer itone(NN)
|
||||||
|
integer icos7(0:6),ip(1)
|
||||||
complex cd0(3200)
|
complex cd0(3200)
|
||||||
complex ctwk(32)
|
complex ctwk(32)
|
||||||
complex csymb(32)
|
complex csymb(32)
|
||||||
logical newdat,lsubtract,lapon
|
logical newdat,lsubtract,lapon
|
||||||
|
data icos7/2,5,6,0,4,1,3/
|
||||||
data rr73/-1,1,1,1,1,1,1,-1,1,1,-1/
|
data rr73/-1,1,1,1,1,1,1,-1,1,1,-1/
|
||||||
data cq/1,1,1,1,1,-1,1,-1,-1,-1,-1,-1,1,-1,-1,-1,-1,-1,1,1,-1,-1,-1,1,1,-1,-1,1/
|
data cq/1,1,1,1,1,-1,1,-1,-1,-1,-1,-1,1,-1,-1,-1,-1,-1,1,1,-1,-1,-1,1,1,-1,-1,1/
|
||||||
|
|
||||||
@ -79,6 +81,24 @@ subroutine ft8b(dd0,newdat,nfqso,ndepth,lapon,napwid,lsubtract,iaptype,icand, &
|
|||||||
call four2a(csymb,32,1,-1,1)
|
call four2a(csymb,32,1,-1,1)
|
||||||
s2(0:7,k)=abs(csymb(1:8))
|
s2(0:7,k)=abs(csymb(1:8))
|
||||||
enddo
|
enddo
|
||||||
|
! sync quality check
|
||||||
|
is1=0
|
||||||
|
is2=0
|
||||||
|
is3=0
|
||||||
|
do k=1,7
|
||||||
|
ip=maxloc(s2(:,k))
|
||||||
|
if(icos7(k-1).eq.(ip(1)-1)) is1=is1+1
|
||||||
|
ip=maxloc(s2(:,k+36))
|
||||||
|
if(icos7(k-1).eq.(ip(1)-1)) is2=is2+1
|
||||||
|
ip=maxloc(s2(:,k+72))
|
||||||
|
if(icos7(k-1).eq.(ip(1)-1)) is3=is3+1
|
||||||
|
enddo
|
||||||
|
! hard sync sum - max is 21
|
||||||
|
nsync=is1+is2+is3
|
||||||
|
if(nsync .le. 6) then ! bail out
|
||||||
|
nbadcrc=1
|
||||||
|
return
|
||||||
|
endif
|
||||||
j=0
|
j=0
|
||||||
do k=1,NN
|
do k=1,NN
|
||||||
if(k.le.7) cycle
|
if(k.le.7) cycle
|
||||||
|
Loading…
x
Reference in New Issue
Block a user