mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-05-24 10:22:26 -04:00
TEMPORARY: Diagnostic routine for the "Save All" missing files problem.
This commit is contained in:
parent
84e53960cd
commit
42626009b5
@ -126,3 +126,35 @@ subroutine symspec(shared_data,k,TRperiod,nsps,ingain,bLowSidelobes, &
|
|||||||
|
|
||||||
return
|
return
|
||||||
end subroutine symspec
|
end subroutine symspec
|
||||||
|
|
||||||
|
subroutine chk_samples(ihsym,k,nstop)
|
||||||
|
|
||||||
|
integer*8 count0,count1,clkfreq
|
||||||
|
integer itime(8)
|
||||||
|
real*8 dtime,fsample
|
||||||
|
character*12 ctime
|
||||||
|
data count0/-1/,k0/99999999/,maxhsym/0/
|
||||||
|
save count0,k0,maxhsym
|
||||||
|
|
||||||
|
if(k.lt.k0 .or. count0.eq.-1) then
|
||||||
|
call system_clock(count0,clkfreq)
|
||||||
|
maxhsym=0
|
||||||
|
endif
|
||||||
|
if((mod(ihsym,100).eq.0 .or. ihsym.ge.nstop-100) .and. &
|
||||||
|
k0.ne.99999999) then
|
||||||
|
call system_clock(count1,clkfreq)
|
||||||
|
dtime=dfloat(count1-count0)/dfloat(clkfreq)
|
||||||
|
if(dtime.lt.28.0) return
|
||||||
|
if(dtime.gt.1.d-6) fsample=(k-3456)/dtime
|
||||||
|
call date_and_time(values=itime)
|
||||||
|
sec=itime(7)+0.001*itime(8)
|
||||||
|
write(ctime,3000) itime(5)-itime(4)/60,itime(6),sec
|
||||||
|
3000 format(i2.2,':',i2.2,':',f6.3)
|
||||||
|
write(33,3033) ctime,dtime,ihsym,nstop,k,fsample
|
||||||
|
3033 format(a12,f12.6,2i7,i10,f15.3)
|
||||||
|
flush(33)
|
||||||
|
endif
|
||||||
|
k0=k
|
||||||
|
|
||||||
|
return
|
||||||
|
end subroutine chk_samples
|
||||||
|
@ -178,6 +178,7 @@ extern "C" {
|
|||||||
|
|
||||||
void get_ft4msg_(int* idecode, char* line, int len);
|
void get_ft4msg_(int* idecode, char* line, int len);
|
||||||
|
|
||||||
|
void chk_samples_(int* m_ihsym,int* k, int* m_hsymStop);
|
||||||
}
|
}
|
||||||
|
|
||||||
int volatile itone[NUM_ISCAT_SYMBOLS]; //Audio tones for all Tx symbols
|
int volatile itone[NUM_ISCAT_SYMBOLS]; //Audio tones for all Tx symbols
|
||||||
@ -1436,6 +1437,7 @@ void MainWindow::dataSink(qint64 frames)
|
|||||||
if(m_mode.startsWith("FST4")) npct=ui->sbNB->value();
|
if(m_mode.startsWith("FST4")) npct=ui->sbNB->value();
|
||||||
symspec_(&dec_data,&k,&m_TRperiod,&nsps,&m_inGain,&bLowSidelobes,&nsmo,&m_px,s,
|
symspec_(&dec_data,&k,&m_TRperiod,&nsps,&m_inGain,&bLowSidelobes,&nsmo,&m_px,s,
|
||||||
&m_df3,&m_ihsym,&m_npts8,&m_pxmax,&npct);
|
&m_df3,&m_ihsym,&m_npts8,&m_pxmax,&npct);
|
||||||
|
chk_samples_(&m_ihsym,&k,&m_hsymStop);
|
||||||
if(m_mode=="WSPR" or m_mode=="FST4W") wspr_downsample_(dec_data.d2,&k);
|
if(m_mode=="WSPR" or m_mode=="FST4W") wspr_downsample_(dec_data.d2,&k);
|
||||||
if(m_ihsym <=0) return;
|
if(m_ihsym <=0) return;
|
||||||
if(ui) ui->signal_meter_widget->setValue(m_px,m_pxmax); // Update thermometer
|
if(ui) ui->signal_meter_widget->setValue(m_px,m_pxmax); // Update thermometer
|
||||||
|
Loading…
x
Reference in New Issue
Block a user