More code cleanup.

This commit is contained in:
Joe Taylor 2023-01-24 14:43:29 -05:00
parent dd8c01f31c
commit e72b39a9d9
4 changed files with 3 additions and 9 deletions

View File

@ -23,10 +23,10 @@ void getfile(QString fname, bool xpol, int dbDgrd)
if(fp != NULL) {
auto n = fread(&datcom_.fcenter,sizeof(datcom_.fcenter),1,fp);
// qDebug() << "aa0" << sizeof(datcom_.fcenter) << n << datcom_.fcenter;
n = fread(id,2,npts,fp);
Q_UNUSED (n);
int j=0;
// qDebug() << "aaa" << datcom_.fcenter;
if(dbDgrd<0) {
for(int i=0; i<npts; i+=2) {

View File

@ -701,14 +701,11 @@ void MainWindow::on_actionDecode_remaining_files_in_directory_triggered()
void MainWindow::diskDat() //diskDat()
{
// qDebug() << "aa1" << datcom_.fcenter;
double hsym;
//These may be redundant??
m_diskData=true;
datcom_.newdat=1;
if(m_wide_graph_window->m_bForceCenterFreq) {
datcom_.fcenter=m_wide_graph_window->m_dForceCenterFreq;
}
hsym=2048.0*96000.0/11025.0; //Samples per JT65 half-symbol
for(int i=0; i<304; i++) { // Do the half-symbol FFTs
int k = i*hsym + 2048.5;

View File

@ -211,6 +211,7 @@ void SoundInThread::inputUDP()
int nsam=-1;
recvpkt_(&nsam, &b.iblk, &b.nrx, &k, b.d8, b.d8);
datcom_.fcenter=b.cfreq + m_fAdd;
// qDebug() << "aaa" << b.cfreq << m_fAdd << datcom_.fcenter;
}
m_hsym=(k-2048)*11025.0/(2048.0*m_rate);

View File

@ -59,12 +59,8 @@ private slots:
private:
Ui::WideGraph * ui;
QString m_settings_filename;
public:
bool m_bForceCenterFreq;
private:
bool m_bLockTxRx;
public:
double m_dForceCenterFreq;
double m_TxOffset;
private:
qint32 m_waterfallAvg;