summaryrefslogtreecommitdiff
path: root/lib/superfox/sfox_wave_gfsk.f90
diff options
context:
space:
mode:
Diffstat (limited to 'lib/superfox/sfox_wave_gfsk.f90')
-rwxr-xr-xlib/superfox/sfox_wave_gfsk.f9011
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/superfox/sfox_wave_gfsk.f90 b/lib/superfox/sfox_wave_gfsk.f90
index c4e30d75..b2718723 100755
--- a/lib/superfox/sfox_wave_gfsk.f90
+++ b/lib/superfox/sfox_wave_gfsk.f90
@@ -1,4 +1,4 @@
-subroutine sfox_wave_gfsk(fname)
+subroutine sfox_wave_gfsk()
! Called by WSJT-X when it's time for SuperFox to transmit. Reads array
! itone(1:151) from disk file 'sfox_2.dat' in the writable data directory.
@@ -9,14 +9,15 @@ subroutine sfox_wave_gfsk(fname)
parameter (NSYM=151,NSPS=1024*4)
parameter (NPTS=(NSYM+2)*NSPS)
parameter (BT=8)
- character*(*) fname
+ character*40 cmsg2
integer itone(151)
- real*8 dt,twopi,f0,baud,phi,dphi_peak
+ real*8 dt,twopi,f0,phi,dphi_peak
real*8 dphi(0:NPTS-1)
real*8 pulse(3*NSPS)
logical first/.true./
common/foxcom/wave(NWAVE)
+ common/foxcom3/nslots2,cmsg2(5),itone3(151)
save first,twopi,dt,hmod,dphi_peak,pulse
if(first) then
@@ -33,9 +34,7 @@ subroutine sfox_wave_gfsk(fname)
endif
wave=0.
- open(25,file=trim(fname),status='unknown',err=999)
- read(25,'(20i4)',err=999,end=999) itone
- close(25)
+ itone=itone3
if(itone(1).lt.0 .or. itone(1).gt.128) go to 999
! Generate the SuperFox waveform.