From 417198d451720ef5b68905b485775b14b473bc93 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Fri, 16 Nov 2012 19:38:39 +0000 Subject: [PATCH] Minor tweaks to decoder. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@2746 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- lib/decoder.f90 | 2 +- lib/peakdt9.f90 | 4 ++-- lib/spec9.f90 | 6 ++---- mainwindow.cpp | 2 +- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/lib/decoder.f90 b/lib/decoder.f90 index 349aae82a..0293155d2 100644 --- a/lib/decoder.f90 +++ b/lib/decoder.f90 @@ -22,7 +22,7 @@ subroutine decoder(ntrSeconds,ndepth,nRxLog,c00) save if(first) then - limtrace=1000000 + limtrace=0 lu=12 open(12,file='timer.out',status='unknown') open(14,file='wsjtx_rx.log',status='unknown',position='append') diff --git a/lib/peakdt9.f90 b/lib/peakdt9.f90 index af4c81f8b..c3de08741 100644 --- a/lib/peakdt9.f90 +++ b/lib/peakdt9.f90 @@ -41,8 +41,8 @@ subroutine peakdt9(c0,npts8,nsps8,istart,foffset,idtpk) if(idtstep.gt.1) then idtstep=1 - idt1=idtpk-1 - idt2=idtpk+1 + idt1=idtpk-3 + idt2=idtpk+3 go to 10 endif diff --git a/lib/spec9.f90 b/lib/spec9.f90 index 5fa22b205..57baddece 100644 --- a/lib/spec9.f90 +++ b/lib/spec9.f90 @@ -33,12 +33,12 @@ subroutine spec9(c0,npts8,nsps,fpk0,fpk,xdt,snrdb,i1SoftSymbols) nsps8=nsps/8 foffset=fpk0 - istart=1520 + istart=1500 call timer('peakdt9 ',0) call peakdt9(c1,npts8,nsps8,istart,foffset,idt) call timer('peakdt9 ',1) - istart=istart + 0.0625*nsps8*idt + istart=istart + nint(0.0625*nsps8*idt) xdt=istart/1500.0 - 1.0 call timer('peakdf9 ',0) @@ -122,8 +122,6 @@ subroutine spec9(c0,npts8,nsps,fpk0,fpk,xdt,snrdb,i1SoftSymbols) enddo call interleave9(i1SoftSymbolsScrambled,-1,i1SoftSymbols) - call flush(81) - call flush(82) return end subroutine spec9 diff --git a/mainwindow.cpp b/mainwindow.cpp index 0e13f8fc6..1cc63180a 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1,4 +1,4 @@ -//-------------------------------------------------------------- MainWindow +//--------------------------------------------------------------- MainWindow #include "mainwindow.h" #include "ui_mainwindow.h" #include "devsetup.h"