diff options
| author | Christoph Berg <christoph.berg@credativ.de> | 2020-06-26 09:28:37 +0200 |
|---|---|---|
| committer | Christoph Berg <christoph.berg@credativ.de> | 2020-06-26 09:28:37 +0200 |
| commit | 28f34ff4908a90b1a7323b2988c33cdb1779fa06 (patch) | |
| tree | 441994b458ea44a1c1019a365d4ec379c34da04f /lib | |
| parent | ee0e1a654b7e64accea78a5aa66ec1e62bd352c8 (diff) | |
New upstream version 2.2.2+repackupstream/2.2.2+repack
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/77bit/packjt77.f90 | 13 | ||||
| -rw-r--r-- | lib/ft8/ft8b.f90 | 17 | ||||
| -rw-r--r-- | lib/ft8/gen_ft8wave.f90 | 2 | ||||
| -rw-r--r-- | lib/ft8_decode.f90 | 14 |
4 files changed, 28 insertions, 18 deletions
diff --git a/lib/77bit/packjt77.f90 b/lib/77bit/packjt77.f90 index 22cdb52f..2464ea80 100644 --- a/lib/77bit/packjt77.f90 +++ b/lib/77bit/packjt77.f90 @@ -196,7 +196,7 @@ subroutine unpack77(c77,nrx,msg,unpk77_success) ! the value of nrx is used to decide when mycall13 or dxcall13 should ! be used in place of a callsign from the hashtable ! - parameter (NSEC=84) !Number of ARRL Sections + parameter (NSEC=85) !Number of ARRL Sections parameter (NUSCAN=65) !Number of US states and Canadian provinces parameter (MAXGRID4=32400) integer*8 n58 @@ -228,7 +228,7 @@ subroutine unpack77(c77,nrx,msg,unpk77_success) "ONS","OR ","ORG","PAC","PR ","QC ","RI ","SB ","SC ","SCV", & "SD ","SDG","SF ","SFL","SJV","SK ","SNJ","STX","SV ","TN ", & "UT ","VA ","VI ","VT ","WCF","WI ","WMA","WNY","WPA","WTX", & - "WV ","WWA","WY ","DX "/ + "WV ","WWA","WY ","DX ","PE "/ data cmult/ & "AL ","AK ","AZ ","AR ","CA ","CO ","CT ","DE ","FL ","GA ", & "HI ","ID ","IL ","IN ","IA ","KS ","KY ","LA ","ME ","MD ", & @@ -281,7 +281,7 @@ subroutine unpack77(c77,nrx,msg,unpk77_success) call unpacktext77(c77(1:71),msg(1:13)) msg(14:)=' ' msg=adjustl(msg) - + else if(i3.eq.0 .and. n3.eq.1) then ! 0.1 K1ABC RR73; W9XYZ <KH1/KH7Z> -11 28 28 10 5 71 DXpedition Mode read(c77,1010) n28a,n28b,n10,n5 @@ -303,6 +303,9 @@ subroutine unpack77(c77,nrx,msg,unpk77_success) n10.eq.hashmy10) call_3='<'//trim(mycall13)//'>' msg=trim(call_1)//' RR73; '//trim(call_2)//' '//trim(call_3)//' '//crpt + else if(i3.eq.0 .and. n3.eq.2) then + unpk77_success=.false. + else if(i3.eq.0 .and. (n3.eq.3 .or. n3.eq.4)) then ! 0.3 WA9XYZ KA1ABC R 16A EMA 28 28 1 4 3 7 71 ARRL Field Day ! 0.4 WA9XYZ KA1ABC R 32A EMA 28 28 1 4 3 7 71 ARRL Field Day @@ -861,7 +864,7 @@ subroutine pack77_03(nwords,w,i3,n3,c77) ! Check 0.3 and 0.4 (ARRL Field Day exchange) ! Example message: WA9XYZ KA1ABC R 16A EMA 28 28 1 4 3 7 71 - parameter (NSEC=84) !Number of ARRL Sections + parameter (NSEC=85) !Number of ARRL Sections character*13 w(19) character*77 c77 character*6 bcall_1,bcall_2 @@ -876,7 +879,7 @@ subroutine pack77_03(nwords,w,i3,n3,c77) "ONS","OR ","ORG","PAC","PR ","QC ","RI ","SB ","SC ","SCV", & "SD ","SDG","SF ","SFL","SJV","SK ","SNJ","STX","SV ","TN ", & "UT ","VA ","VI ","VT ","WCF","WI ","WMA","WNY","WPA","WTX", & - "WV ","WWA","WY ","DX "/ + "WV ","WWA","WY ","DX ","PE "/ if(nwords.lt.4 .or. nwords.gt.5) return call chkcall(w(1),bcall_1,ok1) diff --git a/lib/ft8/ft8b.f90 b/lib/ft8/ft8b.f90 index e6a3e8d3..d96cbd9c 100644 --- a/lib/ft8/ft8b.f90 +++ b/lib/ft8/ft8b.f90 @@ -95,7 +95,6 @@ subroutine ft8b(dd0,newdat,nQSOProgress,nfqso,nftx,ndepth,nzhsym,lapon, & max_iterations=30 nharderrors=-1 - nbadcrc=1 ! this is used upstream to flag good decodes. fs2=12000.0/NDOWN dt2=1.0/fs2 twopi=8.0*atan(1.0) @@ -403,14 +402,12 @@ subroutine ft8b(dd0,newdat,nQSOProgress,nfqso,nftx,ndepth,nzhsym,lapon, & dmin=0.0 norder=2 maxosd=2 - if(ndepth.lt.3) maxosd=1 - if(abs(nfqso-f1).le.napwid .or. abs(nftx-f1).le.napwid .or. ncontest.eq.7) then + if(ndepth.eq.1) maxosd=-1 ! BP only + if(ndepth.eq.2) maxosd=0 ! uncoupled BP+OSD + if(ndepth.eq.3 .and. & + (abs(nfqso-f1).le.napwid .or. abs(nftx-f1).le.napwid .or. ncontest.eq.7)) then maxosd=2 endif - if(nagain) then - norder=3 - maxosd=1 - endif call timer('dec174_91 ',0) Keff=91 call decode174_91(llrz,Keff,maxosd,norder,apmask,message91,cw, & @@ -419,16 +416,16 @@ subroutine ft8b(dd0,newdat,nQSOProgress,nfqso,nftx,ndepth,nzhsym,lapon, & call timer('dec174_91 ',1) msg37=' ' + nbadcrc=1 if(nharderrors.lt.0 .or. nharderrors.gt.36) cycle if(count(cw.eq.0).eq.174) cycle !Reject the all-zero codeword write(c77,'(77i1)') message77 read(c77(72:74),'(b3)') n3 read(c77(75:77),'(b3)') i3 if(i3.gt.5 .or. (i3.eq.0.and.n3.gt.6)) cycle + if(i3.eq.0 .and. n3.eq.2) cycle call unpack77(c77,1,msg37,unpk77_success) - if(.not.unpk77_success) then - cycle - endif + if(.not.unpk77_success) cycle nbadcrc=0 ! If we get this far: valid codeword, valid (i3,n3), nonquirky message. call get_ft8_tones_from_77bits(message77,itone) if(lsubtract) then diff --git a/lib/ft8/gen_ft8wave.f90 b/lib/ft8/gen_ft8wave.f90 index 02e7fdbd..9e277375 100644 --- a/lib/ft8/gen_ft8wave.f90 +++ b/lib/ft8/gen_ft8wave.f90 @@ -45,7 +45,7 @@ subroutine gen_ft8wave(itone,nsym,nsps,bt,fsample,f0,cwave,wave,icmplx,nwave) ! Calculate and insert the audio waveform phi=0.0 dphi = dphi + twopi*f0*dt !Shift frequency up by f0 - wave=0. + if(icmplx .eq. 0) wave=0. if(icmplx .ne. 0) cwave=0. !Avoid writing to memory we may not have access to call timer('gen_loop',0) diff --git a/lib/ft8_decode.f90 b/lib/ft8_decode.f90 index 7feb5b78..26b12d6c 100644 --- a/lib/ft8_decode.f90 +++ b/lib/ft8_decode.f90 @@ -71,7 +71,16 @@ contains write(datetime,1001) nutc !### TEMPORARY ### 1001 format("000000_",i6.6) + if(ndepth.eq.1 .and. nzhsym.lt.50) then + ndec_early=0 + return + endif + if(ndepth.eq.1 .and. nzhsym.eq.50) then + dd=iwave + endif + call ft8apset(mycall12,hiscall12,ncontest,apsym2,aph10) + if(nzhsym.le.47) then dd=iwave dd1=dd @@ -128,10 +137,11 @@ contains endif ! For now: -! ndepth=1: subtraction, 3 passes, bp (no subtract refinement) +! ndepth=1: 1 pass, bp ! ndepth=2: subtraction, 3 passes, bp+osd (no subtract refinement) ! ndepth=3: subtraction, 3 passes, bp+osd npass=3 + if(ndepth.eq.1) npass=1 do ipass=1,npass newdat=.true. syncmin=1.3 @@ -148,7 +158,7 @@ contains elseif(ipass.eq.3) then if((ndecodes-n2).eq.0) cycle lsubtract=.true. - ndeep=3 + ndeep=ndepth endif call timer('sync8 ',0) maxc=MAXCAND |
