summaryrefslogtreecommitdiff
path: root/lib/ft8
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2020-09-28 23:28:26 +0200
committerChristoph Berg <myon@debian.org>2020-09-28 23:28:26 +0200
commitc345880e5818351aec994d60cfb9a42351a4a6bd (patch)
tree82e554ce75a62e7cca37968ee6e8ce08972eef04 /lib/ft8
parentd55aefc872a0b03ac40c44e8b7d635dc0fa19f4e (diff)
parent7aa3c56b01768ba7d38fccedc17b30a4046b3fbb (diff)
Update upstream source from tag 'upstream/2.3.0_rc1+repack'
Update to upstream version '2.3.0~rc1+repack' with Debian dir 278ece20e94e89020b1ea45fb83e61a2cecbb31e
Diffstat (limited to 'lib/ft8')
-rw-r--r--lib/ft8/foxgen.f9027
-rw-r--r--lib/ft8/foxgen_wrap.f902
2 files changed, 3 insertions, 26 deletions
diff --git a/lib/ft8/foxgen.f90 b/lib/ft8/foxgen.f90
index 7492a6f7..a2899e52 100644
--- a/lib/ft8/foxgen.f90
+++ b/lib/ft8/foxgen.f90
@@ -15,7 +15,8 @@ subroutine foxgen()
! common block.
parameter (NN=79,ND=58,NSPS=4*1920)
- parameter (NWAVE=NN*NSPS,NFFT=614400,NH=NFFT/2)
+ parameter (NWAVE=(160+2)*134400*4) !the biggest waveform we generate (FST4-1800 at 48kHz)
+ parameter (NFFT=614400,NH=NFFT/2)
character*40 cmsg
character*37 msg,msgsent
integer itone(79)
@@ -60,34 +61,10 @@ subroutine foxgen()
peak1=maxval(abs(wave))
wave=wave/peak1
-! call plotspec(1,wave) !Plot the spectrum
-
-! Apply compression
-! rms=sqrt(dot_product(wave,wave)/kz)
-! wave=wave/rms
-! do i=1,NWAVE
-! wave(i)=h1(wave(i))
-! enddo
-! peak2=maxval(abs(wave))
-! wave=wave/peak2
-
-! call plotspec(2,wave) !Plot the spectrum
-
width=50.0
call foxfilt(nslots,nfreq,width,wave)
peak3=maxval(abs(wave))
wave=wave/peak3
-
-! nadd=1000
-! j=0
-! do i=1,NWAVE,nadd
-! sx=dot_product(wave(i:i+nadd-1),wave(i:i+nadd-1))
-! j=j+1
-! write(30,3001) j,sx/nadd
-!3001 format(i8,f12.6)
-! enddo
-
-! call plotspec(3,wave) !Plot the spectrum
return
end subroutine foxgen
diff --git a/lib/ft8/foxgen_wrap.f90 b/lib/ft8/foxgen_wrap.f90
index bc8c430f..fec9f37c 100644
--- a/lib/ft8/foxgen_wrap.f90
+++ b/lib/ft8/foxgen_wrap.f90
@@ -1,7 +1,7 @@
subroutine foxgen_wrap(msg40,msgbits,itone)
parameter (NN=79,ND=58,KK=77,NSPS=4*1920)
- parameter (NWAVE=NN*NSPS)
+ parameter (NWAVE=(160+2)*134400) !the biggest waveform we generate (FST4-1800)
character*40 msg40,cmsg
character*12 mycall12