summaryrefslogtreecommitdiff
path: root/lib/ft8
diff options
context:
space:
mode:
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