mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-07-14 07:35:17 -04:00
Implement "Single decode" logic; write to "avemsg.txt" in jt65_decode;
list the correct UTC in decoded text line when using the "Decode" button. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6519 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
697886465d
commit
80873a6040
@ -77,7 +77,7 @@ contains
|
|||||||
character*22 decoded
|
character*22 decoded
|
||||||
end type accepted_decode
|
end type accepted_decode
|
||||||
type(accepted_decode) dec(50)
|
type(accepted_decode) dec(50)
|
||||||
logical :: first_time, robust, prtavg
|
logical :: first_time,robust,prtavg,single_decode
|
||||||
|
|
||||||
integer h0(0:11),d0(0:11)
|
integer h0(0:11),d0(0:11)
|
||||||
real r0(0:11)
|
real r0(0:11)
|
||||||
@ -128,7 +128,8 @@ contains
|
|||||||
! endif
|
! endif
|
||||||
nfa=nf1
|
nfa=nf1
|
||||||
nfb=nf2
|
nfb=nf2
|
||||||
if(naggressive.gt.0 .and. ntol.lt.1000) then
|
single_decode=iand(nexp_decode,32).ne.0
|
||||||
|
if(single_decode .or. (naggressive.gt.0 .and. ntol.lt.1000)) then
|
||||||
nfa=max(200,nfqso-ntol)
|
nfa=max(200,nfqso-ntol)
|
||||||
nfb=min(4000,nfqso+ntol)
|
nfb=min(4000,nfqso+ntol)
|
||||||
thresh0=1.0
|
thresh0=1.0
|
||||||
@ -150,7 +151,9 @@ contains
|
|||||||
call timer('sync65 ',1)
|
call timer('sync65 ',1)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
! If a candidate was found within +/- ntol of nfqso, move it into ca(1).
|
||||||
call fqso_first(nfqso,ntol,ca,ncand)
|
call fqso_first(nfqso,ntol,ca,ncand)
|
||||||
|
if(single_decode) ncand=1
|
||||||
|
|
||||||
nvec=ntrials
|
nvec=ntrials
|
||||||
if(ncand.gt.75) then
|
if(ncand.gt.75) then
|
||||||
@ -352,7 +355,7 @@ contains
|
|||||||
do i=1,nsave
|
do i=1,nsave
|
||||||
csync='*'
|
csync='*'
|
||||||
if(nflipsave(i).lt.0.0) csync='#'
|
if(nflipsave(i).lt.0.0) csync='#'
|
||||||
write(61,1000) cused(i),iutc(i),syncsave(i),dtsave(i),nfsave(i),csync
|
write(14,1000) cused(i),iutc(i),syncsave(i),dtsave(i),nfsave(i),csync
|
||||||
1000 format(a1,i5.4,f6.1,f6.2,i6,1x,a1)
|
1000 format(a1,i5.4,f6.1,f6.2,i6,1x,a1)
|
||||||
enddo
|
enddo
|
||||||
|
|
||||||
|
@ -1768,8 +1768,10 @@ void MainWindow::decode() //decode()
|
|||||||
{
|
{
|
||||||
if(!m_dataAvailable or m_TRperiod==0) return;
|
if(!m_dataAvailable or m_TRperiod==0) return;
|
||||||
ui->DecodeButton->setChecked (true);
|
ui->DecodeButton->setChecked (true);
|
||||||
if(m_diskData and !m_bFastMode) dec_data.params.nutc=dec_data.params.nutc/100;
|
if(dec_data.params.nagain==0 && m_diskData && !m_bFastMode) {
|
||||||
if(dec_data.params.newdat==1 && (!m_diskData)) {
|
dec_data.params.nutc=dec_data.params.nutc/100;
|
||||||
|
}
|
||||||
|
if(dec_data.params.nagain==0 && dec_data.params.newdat==1 && (!m_diskData)) {
|
||||||
qint64 ms = QDateTime::currentMSecsSinceEpoch() % 86400000;
|
qint64 ms = QDateTime::currentMSecsSinceEpoch() % 86400000;
|
||||||
int imin=ms/60000;
|
int imin=ms/60000;
|
||||||
int ihr=imin/60;
|
int ihr=imin/60;
|
||||||
@ -1786,7 +1788,6 @@ void MainWindow::decode() //decode()
|
|||||||
dec_data.params.nutc=10000*ihr + 100*imin + isec;
|
dec_data.params.nutc=10000*ihr + 100*imin + isec;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dec_data.params.nfqso=m_wideGraph->rxFreq();
|
dec_data.params.nfqso=m_wideGraph->rxFreq();
|
||||||
dec_data.params.ndepth=m_ndepth;
|
dec_data.params.ndepth=m_ndepth;
|
||||||
dec_data.params.n2pass=1;
|
dec_data.params.n2pass=1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user