mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-03-23 12:38:53 -04:00
Correct the frequency-selection logic in decoder.f90.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@2750 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
0ac2df1b94
commit
2c9479df01
@ -98,7 +98,7 @@ subroutine decoder(ntrSeconds,ndepth,nRxLog,c00)
|
||||
ii=maxloc(ccfred(ia:ib))
|
||||
i=ii(1) + ia - 1
|
||||
f=(i-1)*df3
|
||||
|
||||
print*,ipk,i,ccfred(i),f,abs(f-fgood)
|
||||
if((i.eq.ipk .or. ccfred(i).ge.3.0) .and. abs(f-fgood).gt.10.0*df8) then
|
||||
call timer('spec9 ',0)
|
||||
call spec9(c0,npts8,nsps,f,fpk,xdt,snr,i1SoftSymbols)
|
||||
@ -127,12 +127,11 @@ subroutine decoder(ntrSeconds,ndepth,nRxLog,c00)
|
||||
fgood=f
|
||||
nsynced=1
|
||||
ndecoded=1
|
||||
ccfred(max(ia,i):min(ib,i+8))=0.
|
||||
endif
|
||||
endif
|
||||
i1=max(ia,i-10)
|
||||
i2=min(ib,i+10)
|
||||
ccfred(i1:i2)=0.
|
||||
if(maxval(ccfred(ia:ib)).gt.3.0) go to 10
|
||||
ccfred(i)=0.
|
||||
if(maxval(ccfred(ia:ib)).gt.3.0) go to 10
|
||||
|
||||
if(fgood.eq.0.0) then
|
||||
write(13,1020) line
|
||||
|
@ -30,7 +30,6 @@ subroutine redsync(ss,ntrperiod,ihsym,iz,red)
|
||||
red=red/xmed
|
||||
smax=0.
|
||||
do i=1,iz
|
||||
! red(i)=0.3*db(red(i))
|
||||
red(i)=2.0*sqrt(red(i))
|
||||
smax=max(smax,red(i))
|
||||
enddo
|
||||
|
@ -1,4 +1,4 @@
|
||||
//-------------------------------------------------------------- MainWindow
|
||||
//--------------------------------------------------------------- MainWindow
|
||||
#include "mainwindow.h"
|
||||
#include "ui_mainwindow.h"
|
||||
#include "devsetup.h"
|
||||
|
Loading…
Reference in New Issue
Block a user