Save 60 s of data to *.iq files. Last 1.5 s may be zeroes.

This commit is contained in:
Joe Taylor 2023-12-07 12:33:19 -05:00
parent 0455cf23e6
commit 8ae939b573
2 changed files with 1 additions and 5 deletions

View File

@ -54,7 +54,7 @@ void getfile(QString fname, bool xpol, int dbDgrd)
void savetf2(QString fname, bool xpol)
{
int npts=2*56*96000;
int npts=2*60*96000;
if(xpol) npts=2*npts;
qint16* buf=(qint16*)malloc(2*npts);
@ -68,7 +68,6 @@ void savetf2(QString fname, bool xpol)
for(int i=0; i<npts; i+=2) {
buf[i]=(qint16)datcom_.d4[j++];
buf[i+1]=(qint16)datcom_.d4[j++];
// if(!xpol) j+=2; //Skip over d4(3,x) and d4(4,x)
}
fwrite(buf,2,npts,fp);
fclose(fp);

View File

@ -403,10 +403,8 @@ void MainWindow::dataSink(int k)
if(ihsym < m_hsymStop) m_decode_called=false;
// qDebug() << "aa" << m_hsymStop << ihsym << m_decode_called << k << ntrz;
if(ihsym >= m_hsymStop and !m_decode_called) { //Decode at t=56 s (for Q65 and data from disk)
m_decode_called=true;
// qDebug() << "bb" << m_hsymStop << ihsym << m_decode_called << k << ntrz; datcom_.newdat=1;
datcom_.nagain=0;
datcom_.nhsym=ihsym;
QDateTime t = QDateTime::currentDateTimeUtc();
@ -421,7 +419,6 @@ void MainWindow::dataSink(int k)
}
m_nTransmitted=0;
}
soundInThread.m_dataSinkBusy=false;
}