mirror of https://github.com/saitohirga/WSJT-X.git
If DX Grid is blank, display zeros for DxAz, etc.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7183 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
6d9ab6385c
commit
97d5fa5e7c
10
astro.cpp
10
astro.cpp
|
@ -111,16 +111,22 @@ auto Astro::astroUpdate(QDateTime const& t, QString const& mygrid, QString const
|
||||||
QString hisgrid_padded {(hisgrid + " ").left (6)};
|
QString hisgrid_padded {(hisgrid + " ").left (6)};
|
||||||
astrosub_(&nyear, &month, &nday, &uth, &freq8, mygrid_padded.toLatin1().constData(),
|
astrosub_(&nyear, &month, &nday, &uth, &freq8, mygrid_padded.toLatin1().constData(),
|
||||||
hisgrid_padded.toLatin1().constData(), &azsun, &elsun, &azmoon, &elmoon,
|
hisgrid_padded.toLatin1().constData(), &azsun, &elsun, &azmoon, &elmoon,
|
||||||
&azmoondx, &elmoondx, &ntsky, &ndop, &ndop00, &ramoon, &decmoon,
|
&azmoondx, &elmoondx, &ntsky, &ndop, &ndop00, &ramoon, &decmoon,
|
||||||
&dgrd, &poloffset, &xnr, &techo, &width1, &width2, &bTx,
|
&dgrd, &poloffset, &xnr, &techo, &width1, &width2, &bTx,
|
||||||
AzElFileName.toLatin1().constData(), jpleph.toLatin1().constData(), 6, 6,
|
AzElFileName.toLatin1().constData(), jpleph.toLatin1().constData(), 6, 6,
|
||||||
AzElFileName.length(), jpleph.length());
|
AzElFileName.length(), jpleph.length());
|
||||||
|
|
||||||
|
if(hisgrid_padded==" ") {
|
||||||
|
azmoondx=0.0;
|
||||||
|
elmoondx=0.0;
|
||||||
|
ndop=0;
|
||||||
|
width2=0.0;
|
||||||
|
}
|
||||||
QString message;
|
QString message;
|
||||||
{
|
{
|
||||||
QTextStream out {&message};
|
QTextStream out {&message};
|
||||||
out << " " << date << "\n"
|
out << " " << date << "\n"
|
||||||
"UTC: " << utc << "\n"
|
"UTC: " << utc << "\n"
|
||||||
<< fixed
|
<< fixed
|
||||||
<< qSetFieldWidth (6)
|
<< qSetFieldWidth (6)
|
||||||
<< qSetRealNumberPrecision (1)
|
<< qSetRealNumberPrecision (1)
|
||||||
|
|
Loading…
Reference in New Issue