summaryrefslogtreecommitdiff
path: root/widgets/astro.h
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2020-11-16 21:54:50 +0100
committerChristoph Berg <myon@debian.org>2020-11-16 21:54:50 +0100
commit77922fa33547ce24535f2e514c9a112dcb496f18 (patch)
tree9f82b0ee01281b315f43a4c60d678927b4c6ca59 /widgets/astro.h
parent7aa3c56b01768ba7d38fccedc17b30a4046b3fbb (diff)
New upstream version 2.3.0~rc2+repackupstream/2.3.0_rc2+repack
Diffstat (limited to 'widgets/astro.h')
-rw-r--r--widgets/astro.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/widgets/astro.h b/widgets/astro.h
index a2474072..2b544872 100644
--- a/widgets/astro.h
+++ b/widgets/astro.h
@@ -2,6 +2,8 @@
#ifndef ASTRO_H
#define ASTRO_H
+#include <utility>
+
#include <QDialog>
#include <QScopedPointer>
@@ -34,9 +36,17 @@ public:
Correction (Correction const&) = default;
Correction& operator = (Correction const&) = default;
+ // testing facility used to test Doppler corrections on
+ // terrestrial links
+ void reverse ()
+ {
+ std::swap (rx, tx);
+ }
+
FrequencyDelta rx;
FrequencyDelta tx;
};
+
Correction astroUpdate(QDateTime const& t,
QString const& mygrid,
QString const& hisgrid,