mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-25 05:38:46 -05:00
Correct a flaw in ft8sim when generating data with large abs(DT).
This commit is contained in:
parent
c26d0b4f29
commit
396bf1a013
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user