diff options
| author | Christoph Berg <myon@debian.org> | 2026-10-09 14:12:35 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2026-10-09 14:12:35 +0200 |
| commit | ffc62c792c9a5196cb4ce7a353287dfe20db6524 (patch) | |
| tree | 1269efa852935b183daae4bb33a58d1b4d2ffb53 /qmap/libqmap/getcand2.f90 | |
| parent | 059831534c7e884f0a607ed86b582fd00d821731 (diff) | |
New upstream version 3.3.0~beta1+dfsgupstream/3.3.0_beta1+dfsg
Diffstat (limited to 'qmap/libqmap/getcand2.f90')
| -rw-r--r-- | qmap/libqmap/getcand2.f90 | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/qmap/libqmap/getcand2.f90 b/qmap/libqmap/getcand2.f90 index c98c3088..61ecc18c 100644 --- a/qmap/libqmap/getcand2.f90 +++ b/qmap/libqmap/getcand2.f90 @@ -1,8 +1,4 @@ -subroutine getcand2(ss,savg0,nts_q65,nagain,nhsym,ntx30a,ntx30b, & - ntol,f0_selected,bAlso30,cand,ncand2) - -! Get candidates for Q65 decodes, based on presence of sync tone. - +module qmap_candidates_mod type candidate real :: snr !Relative S/N of sync detection real :: f !Freq of sync tone, 0 to 96000 Hz @@ -11,6 +7,13 @@ subroutine getcand2(ss,savg0,nts_q65,nagain,nhsym,ntx30a,ntx30b, & integer :: iseq !0 for first half-minute, 1 for second half end type candidate +contains + +subroutine getcand2(ss,savg0,nts_q65,nagain,nhsym,ntx30a,ntx30b, & + ntol,f0_selected,bAlso30,cand,ncand2) + +! Get candidates for Q65 decodes, based on presence of sync tone. + parameter (NFFT=32768) !FFTs done in symspec() parameter (MAX_CANDIDATES=50) type(candidate) :: cand(MAX_CANDIDATES) @@ -22,6 +25,7 @@ subroutine getcand2(ss,savg0,nts_q65,nagain,nhsym,ntx30a,ntx30b, & logical*1 bAlso30 data nseg/16/,npct/40/ + ncand2=0 if(savg0(NFFT).eq.0) return !Avoid a program crash when spectrum is empty savg=savg0 !Save the original spectrum @@ -117,3 +121,4 @@ subroutine getcand2(ss,savg0,nts_q65,nagain,nhsym,ntx30a,ntx30b, & return end subroutine getcand2 +end module qmap_candidates_mod |
