summaryrefslogtreecommitdiff
path: root/lib/superfox/qpc_decode2.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/superfox/qpc_decode2.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/superfox/qpc_decode2.f90')
-rw-r--r--lib/superfox/qpc_decode2.f906
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/superfox/qpc_decode2.f90 b/lib/superfox/qpc_decode2.f90
index 57152ab8..fb1dde88 100644
--- a/lib/superfox/qpc_decode2.f90
+++ b/lib/superfox/qpc_decode2.f90
@@ -5,11 +5,11 @@ subroutine qpc_decode2(c0,fsync,ftol,xdec,ndepth,dth,damp,crc_ok, &
parameter(NMAX=15*12000,NFT=365,NZ=100)
complex c0(NMAX) !Signal as received
- complex c(NMAX) !Signal as received
+ complex, allocatable :: c(:) !Signal as received
real py(0:127,0:127) !Probabilities for received synbol values
real py0(0:127,0:127) !Probabilities for strong signal
real pyd(0:127,0:127) !Dithered values for py
- real s2(0:127,0:151) !Symbol spectra, including sync
+ real, allocatable :: s2(:,:) !Symbol spectra, including sync
real s3(0:127,0:127) !Synchronized symbol spectra
real No
integer crc_chk,crc_sent
@@ -49,6 +49,8 @@ subroutine qpc_decode2(c0,fsync,ftol,xdec,ndepth,dth,damp,crc_ok, &
-5, 4, -4, 3, -5, 4, -4, -5, 4, -5/
+ allocate(c(NMAX),s2(0:127,0:151))
+ s2=0.0
fsample=12000.0
baud=12000.0/1024.0
nstype=1