diff options
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 |
