diff options
| author | Christoph Berg <myon@debian.org> | 2026-09-26 23:24:03 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2026-09-26 23:24:03 +0200 |
| commit | 059831534c7e884f0a607ed86b582fd00d821731 (patch) | |
| tree | 76bcb67a78f8aa2654fd34c2ad801a62136b0170 /lib/jtty/gen_syncwave.f90 | |
| parent | d83a420f0517d7fc47aeb288a6a0cf4891784fcc (diff) | |
New upstream version 3.2.0~rc1+dfsgupstream/3.2.0_rc1+dfsg
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 |
