mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-22 04:11:16 -05:00
Merge branch 'hotfix-2.0.0-rc4' of bitbucket.org:k1jt/wsjtx into hotfix-2.0.0-rc4
This commit is contained in:
commit
e575cdd11b
@ -77,7 +77,7 @@ program wsprsim
|
||||
c=c0
|
||||
if(nwav.eq.0) then
|
||||
if( fspread .ne. 0.0 .or. delay .ne. 0.0 ) then
|
||||
call watterson(c,NMAX/NDOWN,fs,delay,fspread)
|
||||
call watterson(c,NMAX/NDOWN,NN*NSPS,fs,delay,fspread)
|
||||
endif
|
||||
c=c*sig
|
||||
if(snrdb.lt.90) then
|
||||
|
@ -102,7 +102,7 @@ program ft8sim
|
||||
phi=mod(phi+dphi,twopi)
|
||||
enddo
|
||||
enddo
|
||||
if(fspread.ne.0.0 .or. delay.ne.0.0) call watterson(c0,NMAX,fs,delay,fspread)
|
||||
if(fspread.ne.0.0 .or. delay.ne.0.0) call watterson(c0,NMAX,NWAVE,fs,delay,fspread)
|
||||
c=sig*c0
|
||||
|
||||
ib=k
|
||||
|
@ -1,5 +1,8 @@
|
||||
subroutine watterson(c,npts,fs,delay,fspread)
|
||||
|
||||
subroutine watterson(c,npts,nsig,fs,delay,fspread)
|
||||
!
|
||||
! npts is the total length of the simulated data vector
|
||||
! nsig is the number of points that are occupied by signal
|
||||
!
|
||||
complex c(0:npts-1)
|
||||
complex c2(0:npts-1)
|
||||
complex cs1(0:npts-1)
|
||||
@ -55,7 +58,7 @@ subroutine watterson(c,npts,fs,delay,fspread)
|
||||
! write(61,3001) i/12000.0,c(i)
|
||||
!3001 format(3f12.6)
|
||||
enddo
|
||||
rms=sqrt(sq/npts)
|
||||
rms=sqrt(sq/nsig)
|
||||
c=c/rms
|
||||
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user