mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-03-23 04:28:36 -04:00
Correct several operational bugs in the fast (B2, C2) sub-modes.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/map65@2579 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
e0ec7918bf
commit
2b1d49d994
@ -174,7 +174,7 @@ subroutine symspec(k,nfast,nxpol,ndiskdat,nb,nbslider,idphi,nfsample, &
|
||||
if(iqapply.ne.0) call iqfix(cy,NFFT,gainy,phasey)
|
||||
endif
|
||||
|
||||
n=ihsym
|
||||
n=min(322,ihsym)
|
||||
do i=1,NFFT
|
||||
sx=real(cx(i))**2 + aimag(cx(i))**2
|
||||
ss(1,n,i)=sx ! Pol = 0
|
||||
|
14
soundin.cpp
14
soundin.cpp
@ -187,7 +187,7 @@ void SoundInThread::run() //SoundInThread::run()
|
||||
// const PaStreamInfo* p=Pa_GetStreamInfo(inStream);
|
||||
|
||||
bool qe = quitExecution;
|
||||
int ntrz=99;
|
||||
int ntr0=99;
|
||||
int k=0;
|
||||
int nsec;
|
||||
int ntr;
|
||||
@ -203,9 +203,10 @@ void SoundInThread::run() //SoundInThread::run()
|
||||
ntr = nsec % m_TRperiod;
|
||||
|
||||
// Reset buffer pointer and symbol number at start of minute
|
||||
if(ntr < ntrz or !m_monitoring) {
|
||||
if(ntr < ntr0 or !m_monitoring or m_TRperiod!=m_TRperiod0) {
|
||||
nhsym0=0;
|
||||
udata.bzero=true;
|
||||
m_TRperiod0=m_TRperiod;
|
||||
}
|
||||
k=udata.kin;
|
||||
udata.iqswap=m_IQswap;
|
||||
@ -228,7 +229,7 @@ void SoundInThread::run() //SoundInThread::run()
|
||||
}
|
||||
}
|
||||
msleep(100);
|
||||
ntrz=ntr;
|
||||
ntr0=ntr;
|
||||
}
|
||||
Pa_StopStream(inStream);
|
||||
Pa_CloseStream(inStream);
|
||||
@ -346,7 +347,7 @@ void SoundInThread::inputUDP()
|
||||
double d8[174];
|
||||
} b;
|
||||
|
||||
int ntrz=99;
|
||||
int ntr0=99;
|
||||
int k=0;
|
||||
int nsec;
|
||||
int ntr;
|
||||
@ -369,11 +370,12 @@ void SoundInThread::inputUDP()
|
||||
ntr = nsec % m_TRperiod;
|
||||
|
||||
// Reset buffer pointer and symbol number at start of minute
|
||||
if(ntr < ntrz) {
|
||||
if(ntr < ntr0 or !m_monitoring or m_TRperiod!=m_TRperiod0) {
|
||||
k=0;
|
||||
nhsym0=0;
|
||||
m_TRperiod0=m_TRperiod;
|
||||
}
|
||||
ntrz=ntr;
|
||||
ntr0=ntr;
|
||||
|
||||
if(m_monitoring) {
|
||||
m_nrx=b.nrx;
|
||||
|
Loading…
Reference in New Issue
Block a user