summaryrefslogtreecommitdiff
path: root/lib/jtty/gen_syncwave.f90
diff options
context:
space:
mode:
authorhibby <d@vehibberd.com>2026-10-06 21:24:40 +0100
committerhibby <d@vehibberd.com>2026-10-06 21:24:40 +0100
commitc25cbdf6fb6d946175f4335fab77bfea601b56db (patch)
tree6f7a94b7b81f999e434f61b73d47e337dfd26bf2 /lib/jtty/gen_syncwave.f90
parent71f5689252c9f13e70e1c24856904475b2307809 (diff)
parent0685fcada9f95fe90f70b387cd7d757da8209624 (diff)
Merge tag 'debian/3.2.0_rc1+dfsg-2' into debian/trixie-backportsdebian/trixie-backports
tagging wsjtx 3.2.0~rc1+dfsg-2
Diffstat (limited to 'lib/jtty/gen_syncwave.f90')
-rw-r--r--lib/jtty/gen_syncwave.f9026
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