[education/kstars] kstars/ekos/align: When running plate solving manually, reset target position angle and previous PAError otherwise they will remain forever until it is successful or another load and slew is called and there is no way to clear them out on error.
Jasem Mutlaq <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 401e70d2fccc99845275eb4c51010cc08930af1c by Jasem Mutlaq.
Committed on 25/07/2026 at 08:27.
Pushed by mutlaqja into branch 'master'.
When running plate solving manually, reset target position angle and previous PAError otherwise they will remain forever until it is successful or another load and slew is called and there is no way to clear them out on error.
M +4 -0 kstars/ekos/align/align.cpp
https://invent.kde.org/education/kstars/-/commit/401e70d2fccc99845275eb4c51010cc08930af1c
diff --git a/kstars/ekos/align/align.cpp b/kstars/ekos/align/align.cpp
index fbefae55a0..0391c612be 100644
--- a/kstars/ekos/align/align.cpp
+++ b/kstars/ekos/align/align.cpp
@@ -137,6 +137,10 @@ Align::Align(const QSharedPointer<ProfileInfo> &activeProfile) : m_ActiveProfile
connect(solveB, &QPushButton::clicked, this, [this]()
{
+ // Clear any stale Load & Slew target PA so a manual
+ // Capture & Solve does not force an unwanted rotation.
+ m_TargetPositionAngle = std::numeric_limits<double>::quiet_NaN();
+ m_PreviousPAError = -1;
captureAndSolve(true);
});