summaryrefslogtreecommitdiff
path: root/widgets/astro.cpp
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-10-09 14:12:49 +0200
committerChristoph Berg <myon@debian.org>2026-10-09 14:12:49 +0200
commit76956486fa7ef52a51d4e56df1e13a9f19a6c93c (patch)
treefe0c394439fdc167d1970372e8998874090854dd /widgets/astro.cpp
parent0685fcada9f95fe90f70b387cd7d757da8209624 (diff)
parentffc62c792c9a5196cb4ce7a353287dfe20db6524 (diff)
Update upstream source from tag 'upstream/3.3.0_beta1+dfsg'
Update to upstream version '3.3.0~beta1+dfsg' with Debian dir 85037bbb9376721108594b59b54ead82ac6924a3
Diffstat (limited to 'widgets/astro.cpp')
-rw-r--r--widgets/astro.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/widgets/astro.cpp b/widgets/astro.cpp
index dcdbac44..a6813f8d 100644
--- a/widgets/astro.cpp
+++ b/widgets/astro.cpp
@@ -22,7 +22,8 @@
extern "C" {
void astrosub(int nyear, int month, int nday, double uth, double freqMoon,
- const char * mygrid, const char * hisgrid,
+ const char * mygrid, const char * hisgrid, bool use_home_coordinates,
+ double home_latitude, double home_longitude,
double * azsun, double * elsun, double * azmoon,
double * elmoon, double * azmoondx, double * elmoondx, int * ntsky,
int * ndop, int * ndop00, double * ramoon, double * decmoon, double * dgrd,
@@ -108,7 +109,8 @@ void Astro::write_settings ()
settings_->setValue ("LockSkedFreq",ui_->cbLockSkedFreq->isChecked());
}
-auto Astro::astroUpdate(QDateTime const& t, QString const& mygrid, QString const& hisgrid, Frequency freq,
+auto Astro::astroUpdate(QDateTime const& t, QString const& mygrid, QString const& hisgrid,
+ bool use_home_coordinates, double home_latitude, double home_longitude, Frequency freq,
bool bEchoMode, bool bTx, bool bAuto, bool no_tx_QSY, double TR_period) -> Correction
{
Frequency freq_moon {freq};
@@ -133,7 +135,7 @@ auto Astro::astroUpdate(QDateTime const& t, QString const& mygrid, QString const
// changed argument from &dgrd to &m_dgrd added for Bob KA1GT
astrosub(nyear, month, nday, uth, static_cast<double> (freq_moon),
mygrid.toLatin1 ().data (),
- hisgrid.toLatin1().data(),
+ hisgrid.toLatin1().data(), use_home_coordinates, home_latitude, home_longitude,
&azsun, &elsun, &azmoon, &elmoon,
&azmoondx, &elmoondx, &ntsky, &m_dop, &m_dop00, &ramoon, &decmoon,
&m_dgrd, &poloffset, &xnr, extraazel, &techo, &width1, &width2,
@@ -308,7 +310,7 @@ auto Astro::astroUpdate(QDateTime const& t, QString const& mygrid, QString const
double uth {nhr + nmin/60.0 + sec/3600.0};
astrosub(nyear, month, nday, uth, static_cast<double> (freq_moon),
mygrid.toLatin1 ().data (),
- hisgrid.toLatin1().data(),
+ hisgrid.toLatin1().data(), use_home_coordinates, home_latitude, home_longitude,
&azsun, &elsun, &azmoon, &elmoon,
&azmoondx, &elmoondx, &ntsky, &m_dop, &m_dop00, &ramoon, &decmoon,
&dgrd, &poloffset, &xnr, extraazel, &techo, &width1, &width2,