mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-06-15 04:52:31 -04:00
Removing more unused variables, etc., from QMAP.
This commit is contained in:
parent
f3308b7ee4
commit
40cba29e5f
@ -13,7 +13,7 @@ CAboutDlg::CAboutDlg(QWidget *parent) :
|
|||||||
"QMAP is a wideband receiver for the Q65 protocol, intnded<br />"
|
"QMAP is a wideband receiver for the Q65 protocol, intnded<br />"
|
||||||
"primarily for amateur radio EME communication. It works <br />"
|
"primarily for amateur radio EME communication. It works <br />"
|
||||||
"in close cooperation with WSJT-X, versions 2.7 and later. <br /><br />"
|
"in close cooperation with WSJT-X, versions 2.7 and later. <br /><br />"
|
||||||
"Copyright 2001-2023 by Joe Taylor, K1JT. Additional <br />"
|
"Copyright 2001-2024 by Joe Taylor, K1JT. Additional <br />"
|
||||||
"acknowledgments are contained in the source code.");
|
"acknowledgments are contained in the source code.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -44,10 +44,8 @@ Astro::~Astro()
|
|||||||
delete ui;
|
delete ui;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Astro::astroUpdate(QDateTime t, QString mygrid, QString hisgrid,
|
void Astro::astroUpdate(QDateTime t, QString mygrid, QString azelDir, double xavg)
|
||||||
int fQSO, int nsetftx, int ntxFreq, QString azelDir, double xavg)
|
|
||||||
{
|
{
|
||||||
static int ntxFreq0=-99;
|
|
||||||
char cc[300];
|
char cc[300];
|
||||||
double azsun,elsun,azmoon,elmoon,azmoondx,elmoondx;
|
double azsun,elsun,azmoon,elmoon,azmoondx,elmoondx;
|
||||||
double ramoon,decmoon,dgrd,poloffset,xnr;
|
double ramoon,decmoon,dgrd,poloffset,xnr;
|
||||||
@ -63,10 +61,9 @@ void Astro::astroUpdate(QDateTime t, QString mygrid, QString hisgrid,
|
|||||||
int isec=sec;
|
int isec=sec;
|
||||||
double uth=nhr + nmin/60.0 + sec/3600.0;
|
double uth=nhr + nmin/60.0 + sec/3600.0;
|
||||||
int nfreq=(int)datcom_.fcenter;
|
int nfreq=(int)datcom_.fcenter;
|
||||||
// if(nfreq<10 or nfreq > 50000) nfreq=144;
|
|
||||||
|
|
||||||
astrosub_(&nyear, &month, &nday, &uth, &nfreq, mygrid.toLatin1(),
|
astrosub_(&nyear, &month, &nday, &uth, &nfreq, mygrid.toLatin1(),
|
||||||
hisgrid.toLatin1(), &azsun, &elsun, &azmoon, &elmoon,
|
mygrid.toLatin1(), &azsun, &elsun, &azmoon, &elmoon,
|
||||||
&azmoondx, &elmoondx, &ntsky, &ndop, &ndop00,&ramoon, &decmoon,
|
&azmoondx, &elmoondx, &ntsky, &ndop, &ndop00,&ramoon, &decmoon,
|
||||||
&dgrd, &poloffset, &xnr, 6, 6);
|
&dgrd, &poloffset, &xnr, 6, 6);
|
||||||
|
|
||||||
@ -76,18 +73,15 @@ void Astro::astroUpdate(QDateTime t, QString mygrid, QString hisgrid,
|
|||||||
snprintf(cc, sizeof(cc),
|
snprintf(cc, sizeof(cc),
|
||||||
"Az: %6.1f\n"
|
"Az: %6.1f\n"
|
||||||
"El: %6.1f\n"
|
"El: %6.1f\n"
|
||||||
"MyDop: %6d\n"
|
"SelfDop:%5d\n"
|
||||||
"DxAz: %6.1f\n"
|
"MoonDec:%5.1f\n"
|
||||||
"DxEl: %6.1f\n"
|
|
||||||
"DxDop: %6d\n"
|
|
||||||
"Dec: %6.1f\n"
|
|
||||||
"SunAz: %6.1f\n"
|
"SunAz: %6.1f\n"
|
||||||
"SunEl: %6.1f\n"
|
"SunEl: %6.1f\n"
|
||||||
"Freq: %6d\n"
|
"Freq: %6d\n"
|
||||||
"Tsky: %6d\n"
|
"Tsky: %6d\n"
|
||||||
"MNR: %6.1f\n"
|
"MNR: %6.1f\n"
|
||||||
"Dgrd: %6.1f",
|
"Dgrd: %6.1f",
|
||||||
azmoon,elmoon,ndop00,azmoondx,elmoondx,ndop,decmoon,azsun,elsun,
|
azmoon,elmoon,ndop00,decmoon,azsun,elsun,
|
||||||
nfreq,ntsky,xnr,dgrd);
|
nfreq,ntsky,xnr,dgrd);
|
||||||
ui->astroTextBrowser->setText(" "+ date + "\nUTC: " + utc + "\n" + cc);
|
ui->astroTextBrowser->setText(" "+ date + "\nUTC: " + utc + "\n" + cc);
|
||||||
|
|
||||||
@ -155,7 +149,6 @@ void Astro::astroUpdate(QDateTime t, QString mygrid, QString hisgrid,
|
|||||||
|
|
||||||
// Write pointing data to azel.dat
|
// Write pointing data to azel.dat
|
||||||
QString fname=azelDir+"/azel.dat";
|
QString fname=azelDir+"/azel.dat";
|
||||||
// qDebug() << "aa" << fname << isec << bPointing << azOffset << elOffset;
|
|
||||||
QFile f(fname);
|
QFile f(fname);
|
||||||
if(!f.open(QIODevice::WriteOnly | QIODevice::Text)) {
|
if(!f.open(QIODevice::WriteOnly | QIODevice::Text)) {
|
||||||
if(azelDir==m_AzElDir0) return;
|
if(azelDir==m_AzElDir0) return;
|
||||||
@ -165,22 +158,15 @@ void Astro::astroUpdate(QDateTime t, QString mygrid, QString hisgrid,
|
|||||||
mb.exec();
|
mb.exec();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
int ndiff=0;
|
|
||||||
if(ntxFreq != ntxFreq0) ndiff=1;
|
|
||||||
ntxFreq0=ntxFreq;
|
|
||||||
QTextStream out(&f);
|
QTextStream out(&f);
|
||||||
snprintf(cc,sizeof(cc),"%2.2d:%2.2d:%2.2d,%5.1f,%5.1f,Moon\n"
|
snprintf(cc,sizeof(cc),"%2.2d:%2.2d:%2.2d,%5.1f,%5.1f,Moon\n"
|
||||||
"%2.2d:%2.2d:%2.2d,%5.1f,%5.1f,Sun\n"
|
"%2.2d:%2.2d:%2.2d,%5.1f,%5.1f,Sun\n"
|
||||||
"%2.2d:%2.2d:%2.2d,%5.1f,%5.1f,Source\n"
|
"%2.2d:%2.2d:%2.2d,%5.1f,%5.1f,Source\n"
|
||||||
"%4d,%6d,%6d,Doppler\n"
|
"%4d,%6d,%6d,Doppler\n",
|
||||||
"%3d,%1d,fQSO\n"
|
|
||||||
"%3d,%1d,fQSO2\n",
|
|
||||||
nhr,nmin,isec,azmoon,elmoon,
|
nhr,nmin,isec,azmoon,elmoon,
|
||||||
nhr,nmin,isec,azsun+azOffset,elsun+elOffset,
|
nhr,nmin,isec,azsun+azOffset,elsun+elOffset,
|
||||||
nhr,nmin,isec,0.0,0.0,
|
nhr,nmin,isec,0.0,0.0,
|
||||||
nfreq,ndop,ndop00,
|
nfreq,ndop,ndop00);
|
||||||
fQSO,nsetftx,
|
|
||||||
ntxFreq,ndiff);
|
|
||||||
out << cc;
|
out << cc;
|
||||||
f.close();
|
f.close();
|
||||||
}
|
}
|
||||||
|
@ -14,8 +14,7 @@ class Astro : public QWidget
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
explicit Astro (QString const& settings_filename, QWidget *parent = 0);
|
explicit Astro (QString const& settings_filename, QWidget *parent = 0);
|
||||||
void astroUpdate(QDateTime t, QString mygrid, QString hisgrid,
|
void astroUpdate(QDateTime t, QString mygrid, QString azelDir, double xavg);
|
||||||
int fQSO, int nsetftx, int ntxFreq, QString azelDir, double xavg);
|
|
||||||
void setFontSize(int n);
|
void setFontSize(int n);
|
||||||
int getSelfDop();
|
int getSelfDop();
|
||||||
|
|
||||||
|
@ -172,7 +172,7 @@
|
|||||||
<string>Dwell </string>
|
<string>Dwell </string>
|
||||||
</property>
|
</property>
|
||||||
<property name="minimum">
|
<property name="minimum">
|
||||||
<number>10</number>
|
<number>15</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="maximum">
|
<property name="maximum">
|
||||||
<number>300</number>
|
<number>300</number>
|
||||||
@ -241,6 +241,22 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="verticalSpacer">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Vertical</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeType">
|
||||||
|
<enum>QSizePolicy::Fixed</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>20</width>
|
||||||
|
<height>90</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
|
@ -1032,9 +1032,7 @@ void MainWindow::guiUpdate()
|
|||||||
}
|
}
|
||||||
|
|
||||||
QDateTime t = QDateTime::currentDateTimeUtc();
|
QDateTime t = QDateTime::currentDateTimeUtc();
|
||||||
int fQSO=m_wide_graph_window->QSOfreq();
|
m_astro_window->astroUpdate(t, m_myGrid, m_azelDir, m_xavg);
|
||||||
m_astro_window->astroUpdate(t, m_myGrid, m_hisGrid, fQSO, m_setftx,
|
|
||||||
m_txFreq, m_azelDir, m_xavg);
|
|
||||||
m_setftx=0;
|
m_setftx=0;
|
||||||
QString utc = t.date().toString(" yyyy MMM dd \n") + t.time().toString();
|
QString utc = t.date().toString(" yyyy MMM dd \n") + t.time().toString();
|
||||||
ui->labUTC->setText(utc);
|
ui->labUTC->setText(utc);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user