mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-05-24 18:32:27 -04:00
Code cleanup.
This commit is contained in:
parent
347fb06382
commit
b6071d29da
@ -77,27 +77,10 @@ subroutine q65_loops(c00,npts2,nsps,mode,mode64,nsubmode,nFadingModel, &
|
|||||||
! -2 = decode failed
|
! -2 = decode failed
|
||||||
! -3 = CRC mismatch
|
! -3 = CRC mismatch
|
||||||
call timer('qra64_de',1)
|
call timer('qra64_de',1)
|
||||||
if(irc.ge.0) go to 200
|
if(irc.ge.0) go to 100
|
||||||
iirc=max(0,min(irc,11))
|
|
||||||
if(irc.gt.0 .and. nap(iirc).lt.napmin) then
|
|
||||||
dat4x=dat4
|
|
||||||
b90x=b90
|
|
||||||
snr2x=snr2
|
|
||||||
napmin=nap(iirc)
|
|
||||||
irckeep=irc
|
|
||||||
xdtkeep=jpk/6000.0 - 1.0
|
|
||||||
f0keep=-a(1)
|
|
||||||
idfkeep=idf
|
|
||||||
idtkeep=idt
|
|
||||||
ibwkeep=ibw
|
|
||||||
ndistx=ndist
|
|
||||||
go to 100 !###
|
|
||||||
endif
|
|
||||||
enddo ! ibw (b90 loop)
|
enddo ! ibw (b90 loop)
|
||||||
!### if(iand(ndepth,3).lt.3 .and. irc.ge.0) go to 100
|
|
||||||
enddo ! idt (DT loop)
|
enddo ! idt (DT loop)
|
||||||
enddo ! idf (f0 loop)
|
enddo ! idf (f0 loop)
|
||||||
! if(iavg.eq.0 .and. abs(jpk0-4320).le.1300) then
|
|
||||||
if(iavg.eq.0) then
|
if(iavg.eq.0) then
|
||||||
a=0.
|
a=0.
|
||||||
a(1)=-f0
|
a(1)=-f0
|
||||||
@ -115,30 +98,16 @@ subroutine q65_loops(c00,npts2,nsps,mode,mode64,nsubmode,nFadingModel, &
|
|||||||
if(iavg.eq.0 .and. nsave.lt.2) exit
|
if(iavg.eq.0 .and. nsave.lt.2) exit
|
||||||
enddo ! iavg
|
enddo ! iavg
|
||||||
|
|
||||||
100 if(napmin.ne.99) then
|
100 if(mode.eq.65 .and. nsps.eq.7200/2) xdt=xdt+0.4 !### Empirical -- WHY ??? ###
|
||||||
dat4=dat4x
|
|
||||||
b90=b90x
|
|
||||||
snr2=snr2x
|
|
||||||
irc=irckeep
|
|
||||||
xdt=xdtkeep
|
|
||||||
f0=f0keep
|
|
||||||
idt=idtkeep
|
|
||||||
idf=idfkeep
|
|
||||||
ibw=ibwkeep
|
|
||||||
ndist=ndistx
|
|
||||||
endif
|
|
||||||
|
|
||||||
200 if(mode.eq.65 .and. nsps.eq.7200/2) xdt=xdt+0.4 !### Empirical -- WHY ??? ###
|
|
||||||
|
|
||||||
if(irc.ge.0) then
|
if(irc.ge.0) then
|
||||||
navg=nsave
|
navg=nsave
|
||||||
if(iavg.eq.0) navg=0
|
if(iavg.eq.0) navg=0
|
||||||
!### For tests only:
|
!### For tests only:
|
||||||
open(53,file='fort.53',status='unknown',position='append')
|
open(53,file='fort.53',status='unknown',position='append')
|
||||||
write(c77,1200) dat4
|
write(c77,1100) dat4
|
||||||
1200 format(12b6.6,b5.5)
|
1100 format(12b6.6,b5.5)
|
||||||
call unpack77(c77,0,decoded,unpk77_success) !Unpack to get msgsent
|
call unpack77(c77,0,decoded,unpk77_success) !Unpack to get msgsent
|
||||||
! call unpackmsg(dat4,decoded) !Unpack the user message
|
|
||||||
write(53,3053) idf,idt,ibw,b90,xdt,f0,snr2,ndist,irc,navg,decoded(1:22)
|
write(53,3053) idf,idt,ibw,b90,xdt,f0,snr2,ndist,irc,navg,decoded(1:22)
|
||||||
3053 format(3i5,f7.1,f7.2,2f7.1,3i4,2x,a22)
|
3053 format(3i5,f7.1,f7.2,2f7.1,3i4,2x,a22)
|
||||||
close(53)
|
close(53)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user