diff options
| author | hibby <d@vehibberd.com> | 2026-10-06 21:24:40 +0100 |
|---|---|---|
| committer | hibby <d@vehibberd.com> | 2026-10-06 21:24:40 +0100 |
| commit | c25cbdf6fb6d946175f4335fab77bfea601b56db (patch) | |
| tree | 6f7a94b7b81f999e434f61b73d47e337dfd26bf2 /lib/map65_mmdec.f90 | |
| parent | 71f5689252c9f13e70e1c24856904475b2307809 (diff) | |
| parent | 0685fcada9f95fe90f70b387cd7d757da8209624 (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/map65_mmdec.f90')
| -rw-r--r-- | lib/map65_mmdec.f90 | 100 |
1 files changed, 56 insertions, 44 deletions
diff --git a/lib/map65_mmdec.f90 b/lib/map65_mmdec.f90 index 14871857..797e6ab5 100644 --- a/lib/map65_mmdec.f90 +++ b/lib/map65_mmdec.f90 @@ -1,20 +1,30 @@ +module map65_mmdec_mod + use q65_decode + implicit none + + type, extends(q65_decoder) :: counting_q65_decoder + integer :: decoded + end type counting_q65_decoder + +contains + subroutine map65_mmdec(nutc,id2,nqd,ntrperiod, nsubmode,nfa,nfb,nfqso, & ntol,newdat,nagain,max_drift,ndepth,mycall,hiscall,hisgrid) use prog_args use timer_module, only: timer use q65_decode + use iso_fortran_env, only: int16 include 'jt9com.f90' - include 'timer_common.inc' - - type, extends(q65_decoder) :: counting_q65_decoder - integer :: decoded - end type counting_q65_decoder logical single_decode,bVHF,lnewdat,lagain,lclearave,lapcqonly - integer*2 id2(300*12000) + integer(int16) id2(300*12000) integer nqf(20) + integer nutc,nqd,ntrperiod,nsubmode,nfa,nfb,nfqso,ntol + integer newdat,nagain,max_drift,ndepth,navg0,ncontest + integer nqsoprogress,ntr0 + real emedelay ! type(params_block) :: params character(len=12) :: mycall, hiscall character(len=6) :: hisgrid @@ -44,47 +54,49 @@ subroutine map65_mmdec(nutc,id2,nqd,ntrperiod, nsubmode,nfa,nfb,nfqso, & call timer('dec_q65 ',0) call my_q65%decode(q65_decoded,id2,nqd,nutc,ntrperiod,nsubmode,nfqso, & ntol,ndepth,nfa,nfb,lclearave,single_decode,lagain,max_drift,lnewdat, & - emedelay,mycall,hiscall,hisgrid,nQSOProgress,ncontest,lapcqonly,navg0,nqf) + emedelay,mycall,hiscall,hisgrid,nQSOProgress,ncontest,.false., & + lapcqonly,navg0,nqf) call timer('dec_q65 ',1) return -contains - - subroutine q65_decoded (this,nutc,snr1,nsnr,dt,freq,decoded,idec, & - nused,ntrperiod) - - use q65_decode - implicit none - - class(q65_decoder), intent(inout) :: this - integer, intent(in) :: nutc - real, intent(in) :: snr1 - integer, intent(in) :: nsnr - real, intent(in) :: dt - real, intent(in) :: freq - character(len=37), intent(in) :: decoded - integer, intent(in) :: idec - integer, intent(in) :: nused - integer, intent(in) :: ntrperiod - - if(nutc+snr1+nsnr+dt+freq+idec+nused+ntrperiod.eq.-999) stop - if(decoded.eq.'-999') stop - - cq0='q ' - write(cq0(2:2),'(i1)') idec - if(nused.ge.2) write(cq0(3:3),'(i1)') nused - nsnr0=nsnr - xdt0=dt - nfreq0=nint(freq) - msg0=decoded - - select type(this) - type is (counting_q65_decoder) - if(idec.ge.0) this%decoded = this%decoded + 1 - end select - - return - end subroutine q65_decoded end subroutine map65_mmdec + +subroutine q65_decoded (this,nutc,snr1,nsnr,dt,freq,decoded,idec, & + nused,ntrperiod,iflagdec) + + implicit none + + class(q65_decoder), intent(inout) :: this + integer, intent(in) :: nutc + real, intent(in) :: snr1 + integer, intent(in) :: nsnr + real, intent(in) :: dt + real, intent(in) :: freq + character(len=37), intent(in) :: decoded + integer, intent(in) :: idec + integer, intent(in) :: nused + integer, intent(in) :: ntrperiod + integer, intent(in) :: iflagdec !Not used by MAP65's q65b path; see WSJT-X's q65_decoded + + if(nutc+snr1+nsnr+dt+freq+idec+nused+ntrperiod+iflagdec.eq.-999) stop + if(decoded.eq.'-999') stop + + cq0='q ' + write(cq0(2:2),'(i1)') idec + if(nused.ge.2) write(cq0(3:3),'(i1)') nused + nsnr0=nsnr + xdt0=dt + nfreq0=nint(freq) + msg0=decoded + + select type(this) + type is (counting_q65_decoder) + if(idec.ge.0) this%decoded = this%decoded + 1 + end select + + return +end subroutine q65_decoded + +end module map65_mmdec_mod |
