Get UTC from filename.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@2675 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor 2012-10-20 21:12:06 +00:00
parent 7ffcfdc434
commit fa820a1cba
3 changed files with 5 additions and 2 deletions

View File

@ -11,6 +11,10 @@ void getfile(QString fname, int ntrperiod)
strcpy(name,fname.toAscii());
FILE* fp=fopen(name,"rb");
int i0=fname.indexOf(".wav");
jt9com_.nutc=0;
if(i0>0) jt9com_.nutc=100*fname.mid(i0-4,2).toInt() +
fname.mid(i0-2,2).toInt();
int npts=ntrperiod*12000;
memset(jt9com_.d2,0,2*npts);

View File

@ -39,7 +39,6 @@ subroutine decoder(ntrSeconds,c0)
if(nsps.eq.0) stop 'Error: bad TRperiod' !Better: return an error code###
! Now do the decoding
nutc=0
kstep=nsps/2
tstep=kstep/12000.0

View File

@ -1,4 +1,4 @@
//---------------------------------------------------------------- MainWindow
//--------------------------------------------------------------- MainWindow
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "devsetup.h"