summaryrefslogtreecommitdiff
path: root/lib/ft8
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2024-09-30 22:36:11 +0200
committerChristoph Berg <myon@debian.org>2024-09-30 22:36:11 +0200
commit4320ce238aae1fe87fc9f379cdd816e9317885fa (patch)
treeb9d97364486fc8b7f79e8e877d5d491bb061740f /lib/ft8
parentfbaeaa72f63f22bf0b53d634f6809cbdfbb46c9f (diff)
New upstream version 2.7.0~rc7+repackupstream/2.7.0_rc7+repack
Diffstat (limited to 'lib/ft8')
-rwxr-xr-xlib/ft8/foxgen.f908
-rwxr-xr-xlib/ft8/ft8_a7.f904
-rwxr-xr-xlib/ft8/ft8_downsample.f909
-rwxr-xr-xlib/ft8/ft8code.f906
-rwxr-xr-xlib/ft8/ft8d.f902
-rwxr-xr-xlib/ft8/sync8.f906
6 files changed, 17 insertions, 18 deletions
diff --git a/lib/ft8/foxgen.f90 b/lib/ft8/foxgen.f90
index ce74b564..b9e39f62 100755
--- a/lib/ft8/foxgen.f90
+++ b/lib/ft8/foxgen.f90
@@ -19,7 +19,7 @@ subroutine foxgen(bSuperFox,fname)
parameter (NFFT=614400,NH=NFFT/2)
logical*1 bSuperFox,bMoreCQs,bSendMsg
character*(*) fname
- character*40 cmsg
+ character*40 cmsg,cmsg2
character*26 textMsg
character*37 msg,msgsent
integer itone(79)
@@ -31,6 +31,7 @@ subroutine foxgen(bSuperFox,fname)
common/foxcom/wave(NWAVE),nslots,nfreq,i3bit(5),cmsg(5),mycall(12), &
textMsg,bMoreCQs,bSendMsg
common/foxcom2/itone2(NN),msgbits2(77)
+ common/foxcom3/nslots2,cmsg2(5),itone3(151)
equivalence (x,cx),(y,cy)
if(bSuperFox) then
@@ -42,9 +43,8 @@ subroutine foxgen(bSuperFox,fname)
cmsg(n)(39:39)='1' !Set flag for text message
nslots=n
endif
- open(25,file=fname,status='unknown')
- write(25,'(a40)') cmsg(1:n)
- close(25)
+ nslots2=nslots
+ cmsg2=cmsg
go to 999
endif
diff --git a/lib/ft8/ft8_a7.f90 b/lib/ft8/ft8_a7.f90
index c7578edf..a7af8c81 100755
--- a/lib/ft8/ft8_a7.f90
+++ b/lib/ft8/ft8_a7.f90
@@ -1,6 +1,6 @@
module ft8_a7
- parameter(MAXDEC=100)
+ parameter(MAXDEC=200)
! For the following three arrays
! First index i=decode number in this sequence
@@ -43,7 +43,7 @@ subroutine ft8_a7_save(nutc,dt,f,msg)
! Add this decode to current table for this sequence
ndec(j,1)=ndec(j,1)+1 !Number of decodes in this sequence
i=ndec(j,1) !i is index of a new table entry
- if(i.ge.MAXDEC-1) return !Prevent table overflow
+ if(i.gt.MAXDEC) return !Prevent table overflow (indexes start at 1)
dt0(i,j,1)=dt !Save dt in table
f0(i,j,1)=f !Save f in table
diff --git a/lib/ft8/ft8_downsample.f90 b/lib/ft8/ft8_downsample.f90
index f3552258..a57b5324 100755
--- a/lib/ft8/ft8_downsample.f90
+++ b/lib/ft8/ft8_downsample.f90
@@ -8,10 +8,10 @@ subroutine ft8_downsample(dd,newdat,f0,c1)
logical newdat,first
complex c1(0:NFFT2-1)
complex cx(0:NFFT1/2)
- real dd(NMAX),x(NFFT1),taper(0:100)
- equivalence (x,cx)
+ real dd(NMAX),x(NFFT1+2),taper(0:100)
data first/.true./
- save cx,first,taper
+ save x,cx,first,taper
+ equivalence (x,cx)
if(first) then
pi=4.0*atan(1.0)
@@ -23,11 +23,10 @@ subroutine ft8_downsample(dd,newdat,f0,c1)
if(newdat) then
! Data in dd have changed, recompute the long FFT
x(1:NMAX)=dd
- x(NMAX+1:NFFT1)=0. !Zero-pad the x array
+ x(NMAX+1:NFFT1+2)=0. !Zero-pad the x array
call four2a(cx,NFFT1,1,-1,0) !r2c FFT to freq domain
newdat=.false.
endif
-
df=12000.0/NFFT1
baud=12000.0/NSPS
i0=nint(f0/df)
diff --git a/lib/ft8/ft8code.f90 b/lib/ft8/ft8code.f90
index a7ff5793..45b0b6a6 100755
--- a/lib/ft8/ft8code.f90
+++ b/lib/ft8/ft8code.f90
@@ -23,9 +23,9 @@ program ft8code
'LDPC(174,91) encoding,'
print*,'bit and symbol ordering, and other details of the FT8 protocol.'
print*
- print*,'Usage: ft8code [-c grid] "message" # Results for specified message'
- print*,' ft8code -T # Examples of all message types'
- print*,' ft8code -t # Short format examples'
+ print*,'Usage: ft8code "message" # Results for specified message'
+ print*,' ft8code -T # Examples of all message types'
+ print*,' ft8code -t # Short format examples'
go to 999
endif
diff --git a/lib/ft8/ft8d.f90 b/lib/ft8/ft8d.f90
index b7b39fc7..28af93d1 100755
--- a/lib/ft8/ft8d.f90
+++ b/lib/ft8/ft8d.f90
@@ -42,7 +42,7 @@ program ft8d
j2=index(infile,'.wav')
read(infile(j2-6:j2-1),*) nutc
datetime=infile(j2-13:j2-1)
- call sync8(iwave,nfa,nfb,nfqso,s,candidate,ncand)
+ call sync8(iwave,NMAX,nfa,nfb,nfqso,s,candidate,ncand)
syncmin=2.0
dd=iwave
do icand=1,ncand
diff --git a/lib/ft8/sync8.f90 b/lib/ft8/sync8.f90
index 7aff8f09..be84db23 100755
--- a/lib/ft8/sync8.f90
+++ b/lib/ft8/sync8.f90
@@ -1,4 +1,4 @@
-subroutine sync8(dd,nfa,nfb,syncmin,nfqso,maxcand,candidate,ncand,sbase)
+subroutine sync8(dd,npts,nfa,nfb,syncmin,nfqso,maxcand,candidate,ncand,sbase)
include 'ft8_params.f90'
parameter (MAXPRECAND=1000)
@@ -9,13 +9,13 @@ subroutine sync8(dd,nfa,nfb,syncmin,nfqso,maxcand,candidate,ncand,sbase)
real s(NH1,NHSYM)
real savg(NH1)
real sbase(NH1)
- real x(NFFT1)
+ real x(NFFT1+2)
real sync2d(NH1,-JZ:JZ)
real red(NH1)
real red2(NH1)
real candidate0(3,MAXPRECAND)
real candidate(3,maxcand)
- real dd(NMAX)
+ real dd(npts)
integer jpeak(NH1)
integer jpeak2(NH1)
integer indx(NH1)