2013-05-14 10:29:01 -04:00
|
|
|
subroutine softsym(c0,npts8,nsps8,newdat,fpk,syncpk,snrdb,xdt,freq,drift, &
|
2013-05-15 11:17:36 -04:00
|
|
|
schk,i1SoftSymbols)
|
2012-11-27 10:38:03 -05:00
|
|
|
|
2013-04-22 11:43:02 -04:00
|
|
|
! Compute the soft symbols
|
|
|
|
|
2012-11-27 10:38:03 -05:00
|
|
|
complex c0(0:npts8-1)
|
|
|
|
complex c2(0:4096-1)
|
|
|
|
complex c3(0:4096-1)
|
|
|
|
complex c5(0:4096-1)
|
2013-04-22 11:08:20 -04:00
|
|
|
real a(3)
|
2012-11-27 10:38:03 -05:00
|
|
|
integer*1 i1SoftSymbolsScrambled(207)
|
|
|
|
integer*1 i1SoftSymbols(207)
|
|
|
|
include 'jt9sync.f90'
|
|
|
|
|
|
|
|
nspsd=16
|
|
|
|
ndown=nsps8/nspsd
|
|
|
|
|
2013-04-22 11:43:02 -04:00
|
|
|
! Mix, low-pass filter, and downsample to 16 samples per symbol
|
2013-05-14 10:29:01 -04:00
|
|
|
call downsam9(c0,npts8,nsps8,newdat,nspsd,fpk,c2,nz2)
|
2012-11-27 10:38:03 -05:00
|
|
|
|
2013-04-22 11:43:02 -04:00
|
|
|
call peakdt9(c2,nz2,nsps8,nspsd,c3,nz3,xdt) !Find DT
|
2012-11-27 10:38:03 -05:00
|
|
|
|
|
|
|
fsample=1500.0/ndown
|
|
|
|
a=0.
|
2013-04-22 11:43:02 -04:00
|
|
|
call afc9(c3,nz3,fsample,a,syncpk) !Find deltaF, fDot, fDDot
|
2013-05-15 11:17:36 -04:00
|
|
|
freq=fpk - a(1)
|
|
|
|
drift=-2.0*a(2)
|
2012-11-27 10:38:03 -05:00
|
|
|
|
2013-04-22 11:43:02 -04:00
|
|
|
call twkfreq(c3,c5,nz3,fsample,a) !Correct for deltaF, fDot, fDDot
|
2012-11-27 10:38:03 -05:00
|
|
|
|
2013-04-22 11:43:02 -04:00
|
|
|
! Compute soft symbols (in scrambled order)
|
2013-05-15 11:17:36 -04:00
|
|
|
call symspec2(c5,nz3,nsps8,nspsd,fsample,freq,drift,snrdb,schk, &
|
|
|
|
i1SoftSymbolsScrambled)
|
2012-11-27 10:38:03 -05:00
|
|
|
|
2013-04-22 11:43:02 -04:00
|
|
|
! Remove interleaving
|
2012-11-27 10:38:03 -05:00
|
|
|
call interleave9(i1SoftSymbolsScrambled,-1,i1SoftSymbols)
|
|
|
|
|
2013-05-20 10:09:02 -04:00
|
|
|
return
|
2013-04-22 11:43:02 -04:00
|
|
|
end subroutine softsym
|