mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-25 05:38:46 -05:00
Fix a bug in gen_ft8wave.f90 that failed to update pulse and ctab when sample rate changes.
This commit is contained in:
parent
f51a7d4f7d
commit
5a0cb0f0a0
@ -9,11 +9,12 @@ subroutine gen_ft8wave(itone,nsym,nsps,bt,fsample,f0,cwave,wave,icmplx,nwave)
|
||||
real pulse(23040)
|
||||
real dphi(0:(nsym+2)*nsps-1)
|
||||
integer itone(nsym)
|
||||
data ibt0/0/
|
||||
save pulse,twopi,dt,hmod,ibt0,ctab
|
||||
data fchk0/0.0/
|
||||
save pulse,twopi,dt,hmod,fchk0,ctab
|
||||
|
||||
ibt=nint(10*bt)
|
||||
if(ibt0.ne.ibt) then
|
||||
fchk=nsym+nsps+bt+fsample
|
||||
if(fchk.ne.fchk0) then
|
||||
twopi=8.0*atan(1.0)
|
||||
dt=1.0/fsample
|
||||
hmod=1.0
|
||||
@ -22,11 +23,11 @@ subroutine gen_ft8wave(itone,nsym,nsps,bt,fsample,f0,cwave,wave,icmplx,nwave)
|
||||
tt=(i-1.5*nsps)/real(nsps)
|
||||
pulse(i)=gfsk_pulse(bt,tt)
|
||||
enddo
|
||||
ibt0=nint(10*bt)
|
||||
do i=0,NTAB-1
|
||||
phi=i*twopi/NTAB
|
||||
ctab(i)=cmplx(cos(phi),sin(phi))
|
||||
enddo
|
||||
fchk0=fchk
|
||||
endif
|
||||
|
||||
! Compute the smoothed frequency waveform.
|
||||
|
Loading…
Reference in New Issue
Block a user