diff options
Diffstat (limited to 'lib/jtty/gen_syncwave.f90')
| -rw-r--r-- | lib/jtty/gen_syncwave.f90 | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/jtty/gen_syncwave.f90 b/lib/jtty/gen_syncwave.f90 new file mode 100644 index 00000000..07c0ae43 --- /dev/null +++ b/lib/jtty/gen_syncwave.f90 @@ -0,0 +1,26 @@ +subroutine gen_syncwave(csync,nss) + use jtty_fec, only: is13 ! sync sequence + implicit none + integer, intent(in) :: nss ! samples/symbol at 6000 samples/sec + integer :: i,j,k + real :: twopi, fsample, dt, baud, phi, dphi + complex, intent(out) :: csync(13*nss) + + twopi=8.0*atan(1.0) + fsample = 6000.0 + dt=1.0/fsample + baud=fsample/nss + csync=cmplx(0.,0.) + k=1 + phi=0.0 + do i=1,13 + dphi=twopi*baud*is13(i)*dt + do j=1,nss + csync(k)=cmplx(cos(phi),sin(phi)) + k=k+1 + phi=phi+dphi + enddo + enddo + + return +end subroutine gen_syncwave |
