mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-05-23 18:02:29 -04:00
Tweak to minimize spurious sync values (from QRN ??).
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@2778 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
faa6b9d7af
commit
d183afd95a
@ -78,15 +78,13 @@ subroutine decoder(ss,c0)
|
|||||||
fgood=0.
|
fgood=0.
|
||||||
nsps8=nsps/8
|
nsps8=nsps/8
|
||||||
df8=1500.0/nsps8
|
df8=1500.0/nsps8
|
||||||
sbest=0.
|
sbest=-1.0
|
||||||
|
dblim=db(864.0/nsps8) - 26.2
|
||||||
|
|
||||||
10 ii=maxloc(ccfred(ia:ib))
|
10 ii=maxloc(ccfred(ia:ib))
|
||||||
i=ii(1) + ia - 1
|
i=ii(1) + ia - 1
|
||||||
f=(i-1)*df3
|
f=(i-1)*df3
|
||||||
if((i.eq.ipk .or. ccfred(i).ge.3.0) .and. abs(f-fgood).gt.10.0*df8) then
|
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)
|
|
||||||
! call timer('spec9 ',1)
|
|
||||||
|
|
||||||
call timer('decode9a',0)
|
call timer('decode9a',0)
|
||||||
fpk=1000.0 + df3*(i-1)
|
fpk=1000.0 + df3*(i-1)
|
||||||
@ -99,11 +97,11 @@ subroutine decoder(ss,c0)
|
|||||||
call timer('decode9 ',1)
|
call timer('decode9 ',1)
|
||||||
|
|
||||||
sync=(syncpk-1.0)/2.0
|
sync=(syncpk-1.0)/2.0
|
||||||
if(sync.lt.0.0) sync=0.0
|
if(sync.lt.0.0 .or. snrdb.lt.dblim-2.0) sync=0.0
|
||||||
nsync=sync
|
nsync=sync
|
||||||
if(nsync.gt.10) nsync=10
|
if(nsync.gt.10) nsync=10
|
||||||
nsnr=nint(snrdb)
|
nsnr=nint(snrdb)
|
||||||
|
|
||||||
if(sync.gt.sbest .and. fgood.eq.0.0) then
|
if(sync.gt.sbest .and. fgood.eq.0.0) then
|
||||||
sbest=sync
|
sbest=sync
|
||||||
write(line,fmt) nutc,nsync,nsnr,xdt,freq,drift
|
write(line,fmt) nutc,nsync,nsnr,xdt,freq,drift
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
//-------------------------------------------------------------- MainWindow
|
//--------------------------------------------------------------- MainWindow
|
||||||
#include "mainwindow.h"
|
#include "mainwindow.h"
|
||||||
#include "ui_mainwindow.h"
|
#include "ui_mainwindow.h"
|
||||||
#include "devsetup.h"
|
#include "devsetup.h"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[Setup]
|
[Setup]
|
||||||
AppName=wsjtx
|
AppName=wsjtx
|
||||||
AppVerName=wsjtx Version 0.4 r2746
|
AppVerName=wsjtx Version 0.5 r2777
|
||||||
AppCopyright=Copyright (C) 2001-2012 by Joe Taylor, K1JT
|
AppCopyright=Copyright (C) 2001-2012 by Joe Taylor, K1JT
|
||||||
DefaultDirName=c:\wsjtx
|
DefaultDirName=c:\wsjtx
|
||||||
DefaultGroupName=wsjtx
|
DefaultGroupName=wsjtx
|
||||||
|
Loading…
x
Reference in New Issue
Block a user