summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2020-05-25 21:27:22 +0200
committerChristoph Berg <myon@debian.org>2020-05-25 21:27:22 +0200
commit458b033b8ae7818d50e80f51b12c0c43bbd0d3e2 (patch)
tree4aabd646d028edc5e51a71762faeac6c07577642 /lib
parent32a41b1abe1a4aab0892c9c2051be6ba5b379f1e (diff)
New upstream version 2.2.0~rc2+repackupstream/2.2.0_rc2+repack
Diffstat (limited to 'lib')
-rw-r--r--lib/77bit/packjt77.f908
-rw-r--r--lib/ft4_decode.f903
-rw-r--r--lib/ft8/encode174_91_nocrc.f902
-rw-r--r--lib/ft8/ft8b.f902
-rw-r--r--lib/ft8/osd174_91.f902
-rw-r--r--lib/jt49sim.f901
-rw-r--r--lib/refspectrum.f9013
-rw-r--r--lib/wsprd/wsprd_utils.c2
8 files changed, 20 insertions, 13 deletions
diff --git a/lib/77bit/packjt77.f90 b/lib/77bit/packjt77.f90
index 707e86e9..c5a663cc 100644
--- a/lib/77bit/packjt77.f90
+++ b/lib/77bit/packjt77.f90
@@ -533,7 +533,12 @@ subroutine unpack77(c77,nrx,msg,unpk77_success)
! EU VHF contest
read(c77,1060) n12,n22,ir,irpt,iserial,igrid6
1060 format(b12,b22,b1,b3,b11,b25)
+ if(igrid6.lt.0 .or. igrid6.gt.18662399) then
+ unpk77_success=.false.
+ return
+ endif
call hash12(n12,call_1)
+ if(n12.eq.hashmy12) call_1='<'//trim(mycall13)//'>'
call hash22(n22,call_2)
nrs=52+irpt
write(cexch,1022) nrs,iserial
@@ -545,7 +550,7 @@ subroutine unpack77(c77,nrx,msg,unpk77_success)
else if(i3.ge.6) then ! i3 values 6 and 7 are not yet defined
unpk77_success=.false.
endif
-! if(msg(1:4).eq.'CQ <') unpk77_success=.false.
+ if(msg(1:4).eq.'CQ <') unpk77_success=.false.
return
end subroutine unpack77
@@ -1157,6 +1162,7 @@ subroutine pack77_3(nwords,w,i3,n3,c77)
"NB ","NS ","QC ","ON ","MB ","SK ","AB ","BC ","NWT","NF ", &
"LB ","NU ","YT ","PEI","DC "/
+ if(w(1)(1:1).eq.'<' .and. w(2)(1:1).eq.'<') go to 900
if(nwords.eq.4 .or. nwords.eq.5 .or. nwords.eq.6) then
i1=1
if(trim(w(1)).eq.'TU;') i1=2
diff --git a/lib/ft4_decode.f90 b/lib/ft4_decode.f90
index fe6ce086..b15368a4 100644
--- a/lib/ft4_decode.f90
+++ b/lib/ft4_decode.f90
@@ -87,6 +87,9 @@ contains
this%callback => callback
hhmmss=cdatetime0(8:13)
+ dxcall13=hiscall ! initialize for use in packjt77
+ mycall13=mycall
+
smax1=0.
nd1=0
diff --git a/lib/ft8/encode174_91_nocrc.f90 b/lib/ft8/encode174_91_nocrc.f90
index 371e8317..82d1669d 100644
--- a/lib/ft8/encode174_91_nocrc.f90
+++ b/lib/ft8/encode174_91_nocrc.f90
@@ -7,12 +7,10 @@ subroutine encode174_91_nocrc(message,codeword)
use crc
integer, parameter:: N=174, K=91, M=N-K
- character*91 tmpchar
integer*1 codeword(N)
integer*1 gen(M,K)
integer*1 message(K)
integer*1 pchecks(M)
- integer*1, target :: i1MsgBytes(12)
include "ldpc_174_91_c_generator.f90"
logical first
data first/.true./
diff --git a/lib/ft8/ft8b.f90 b/lib/ft8/ft8b.f90
index b92bde34..e6a3e8d3 100644
--- a/lib/ft8/ft8b.f90
+++ b/lib/ft8/ft8b.f90
@@ -454,7 +454,7 @@ subroutine ft8b(dd0,newdat,nQSOProgress,nfqso,nftx,ndepth,nzhsym,lapon, &
if(.not.nagain) then
xsnr=xsnr2
endif
- if(nsync.le.7 .and. xsnr.lt.-24.0) then !bail out, likely false decode
+ if(nsync.le.10 .and. xsnr.lt.-24.0) then !bail out, likely false decode
nbadcrc=1
return
endif
diff --git a/lib/ft8/osd174_91.f90 b/lib/ft8/osd174_91.f90
index d9584f56..89677ebe 100644
--- a/lib/ft8/osd174_91.f90
+++ b/lib/ft8/osd174_91.f90
@@ -167,7 +167,7 @@ subroutine osd174_91(llr,k,apmask,ndeep,message91,cw,nhardmin,dmin)
nt=40
ntheta=12
ntau=15
- elseif(ndeep.eq.6) then
+ else !ndeep=6
nord=4
npre1=1
npre2=1
diff --git a/lib/jt49sim.f90 b/lib/jt49sim.f90
index e8aff69d..7c4c7505 100644
--- a/lib/jt49sim.f90
+++ b/lib/jt49sim.f90
@@ -61,6 +61,7 @@ program jt49sim
nsym=0
dnsps=0.
baud=0.
+ sig=0.
if(imode.eq.4) then
nsym=206 !Number of channel symbols (JT4)
diff --git a/lib/refspectrum.f90 b/lib/refspectrum.f90
index fdd302ae..68b514f9 100644
--- a/lib/refspectrum.f90
+++ b/lib/refspectrum.f90
@@ -124,12 +124,12 @@ subroutine refspectrum(id2,bclear,brefspec,buseref,fname)
if(buseref) then
if(blastuse.neqv.buseref) then !just enabled so read filter
fil=1.0
- open(16,file=fname,status='old',err=110)
- read(16,1003,err=20,end=100) ndummy,ndummy,nterms,a
+ open(16,file=fname,status='old',err=999)
+ read(16,1003,err=20,end=999) ndummy,ndummy,nterms,a
goto 30
20 rewind(16) !allow for old style refspec.dat with no header
30 do i=1,NH
- read(16,1005,err=100,end=100) freq,s(i),ref(i),fil(i),filter(i)
+ read(16,1005,err=999,end=999) freq,s(i),ref(i),fil(i),filter(i)
enddo
! Make the filter causal for overlap and add.
cx(0)=0.0
@@ -139,8 +139,7 @@ subroutine refspectrum(id2,bclear,brefspec,buseref,fname)
x(800:NH)=0.0
call four2a(cx,NFFT,1,-1,0)
cfil=cx
-100 close(16)
-110 continue
+ close(16)
endif
! Use overlap and add method to apply causal reference filter.
x(0:NH-1)=id2(1:NH)
@@ -154,6 +153,6 @@ subroutine refspectrum(id2,bclear,brefspec,buseref,fname)
id2(1:NH)=nint(x(0:NH-1))
endif
blastuse=buseref
-
- return
+
+999 return
end subroutine refspectrum
diff --git a/lib/wsprd/wsprd_utils.c b/lib/wsprd/wsprd_utils.c
index 5a1d4974..64e809f8 100644
--- a/lib/wsprd/wsprd_utils.c
+++ b/lib/wsprd/wsprd_utils.c
@@ -243,7 +243,7 @@ int floatcomp(const void* elem1, const void* elem2)
int unpk_(signed char *message, char *hashtab, char *loctab, char *call_loc_pow, char *callsign)
{
int n1,n2,n3,ndbm,ihash,nadd,noprint=0;
- char grid[5],grid6[7],cdbm[3];
+ char grid[5],grid6[7],cdbm[4];
unpack50(message,&n1,&n2);
if( !unpackcall(n1,callsign) ) return 1;