summaryrefslogtreecommitdiff
path: root/lib/ft8
diff options
context:
space:
mode:
authorChristoph Berg <christoph.berg@credativ.de>2019-07-17 15:12:32 +0200
committerChristoph Berg <christoph.berg@credativ.de>2019-07-17 15:12:32 +0200
commit3d67be3023bf34eac7f93fa422f5ef569abb92a9 (patch)
treef3748d6a113c50d483882b60b732a9d211100cf8 /lib/ft8
parent62c0c627f4f8aec46a082bf098d4f1523a16d297 (diff)
New upstream version 2.1.0+repackupstream/2.1.0+repack
Diffstat (limited to 'lib/ft8')
-rw-r--r--lib/ft8/ft8sim.f904
-rw-r--r--lib/ft8/subtractft8.f903
2 files changed, 3 insertions, 4 deletions
diff --git a/lib/ft8/ft8sim.f90 b/lib/ft8/ft8sim.f90
index bbec600d..c5dd82bb 100644
--- a/lib/ft8/ft8sim.f90
+++ b/lib/ft8/ft8sim.f90
@@ -91,7 +91,7 @@ program ft8sim
msg0=msg
do ifile=1,nfiles
k=nint((xdt+0.5)/dt)
- ia=k
+ ia=max(1,k)
phi=0.0
c0=0.0
do j=1,NN !Generate complex waveform
@@ -105,7 +105,7 @@ program ft8sim
if(fspread.ne.0.0 .or. delay.ne.0.0) call watterson(c0,NMAX,NWAVE,fs,delay,fspread)
c=sig*c0
- ib=k
+ ib=min(k,NMAX)
wave=real(c)
peak=maxval(abs(wave(ia:ib)))
nslots=1
diff --git a/lib/ft8/subtractft8.f90 b/lib/ft8/subtractft8.f90
index 200139a2..ec0beea9 100644
--- a/lib/ft8/subtractft8.f90
+++ b/lib/ft8/subtractft8.f90
@@ -20,12 +20,11 @@ subroutine subtractft8(dd,itone,f0,dt)
save first
nstart=dt*12000+1
-! call genft8refsig(itone,cref,f0)
nsym=79
nsps=1920
fs=12000.0
icmplx=1
- bt=4.0 ! Temporary compromise?
+ bt=2.0
call gen_ft8wave(itone,nsym,nsps,bt,fs,f0,cref,xjunk,icmplx,NFRAME)
camp=0.
do i=1,nframe