diff options
| author | Christoph Berg <myon@debian.org> | 2026-09-26 23:24:28 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2026-09-26 23:24:28 +0200 |
| commit | 69344560ea394c06ca94acac46a2e4c3e8b7b229 (patch) | |
| tree | ebc98370a697a9bbd6b973a14fa5113c475c6db7 /lib/jtty/gen_syncwave.f90 | |
| parent | 3e9d10a67671d0bd5c7b8c3ca8088f1818322eff (diff) | |
| parent | 059831534c7e884f0a607ed86b582fd00d821731 (diff) | |
Update upstream source from tag 'upstream/3.2.0_rc1+dfsg'
Update to upstream version '3.2.0~rc1+dfsg'
with Debian dir dbff457fd2c3616d5c77b863c7bfb2186ed86047
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 |
