[education/kstars] kstars/ekos/align: Offset must be updated after each solve. Add more logging to diagnose any future issues.

Jasem Mutlaq <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit b00a2498f8e0488fd41e15edf312433aee67c730 by Jasem Mutlaq.
Committed on 25/07/2026 at 04:58.
Pushed by mutlaqja into branch 'master'.

Offset must be updated after each solve. Add more logging to diagnose any future issues.

M  +4    -0    kstars/ekos/align/align_solver.cpp

https://invent.kde.org/education/kstars/-/commit/b00a2498f8e0488fd41e15edf312433aee67c730

diff --git a/kstars/ekos/align/align_solver.cpp b/kstars/ekos/align/align_solver.cpp
index c8d6a4d4b4..346cca336c 100644
--- a/kstars/ekos/align/align_solver.cpp
+++ b/kstars/ekos/align/align_solver.cpp
@@ -881,6 +881,10 @@ void Align::solverFinished(double orientation, double ra, double dec, double pix
             {
                 sRawAngle = absAngle[0].getValue();
                 double OffsetAngle = RotatorUtils::Instance()->calcOffsetAngle(sRawAngle, solverPA);
+                RotatorUtils::Instance()->updateOffset(OffsetAngle);
+                qCDebug(KSTARS_EKOS_ALIGN) << "Updated rotator offset from solver measurement:"
+                                           << "Raw Angle:" << sRawAngle << "Solver PA:" << solverPA
+                                           << "New Offset:" << OffsetAngle;
                 auto reverseStatus = "Unknown";
                 auto reverseProperty = m_Rotator->getSwitch("ROTATOR_REVERSE");
                 if (reverseProperty)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.