From 2e9d4f14b6f7ee1b34d052b564a1161bf5c9a0c2 Mon Sep 17 00:00:00 2001 From: Ian Jessen Date: Wed, 20 Dec 2023 03:52:22 -0500 Subject: [PATCH] guide offset units fix --- indi-celestronaux/celestronaux.cpp | 3 +-- indi-celestronaux/celestronaux.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/indi-celestronaux/celestronaux.cpp b/indi-celestronaux/celestronaux.cpp index 771806ab5..e5751799e 100644 --- a/indi-celestronaux/celestronaux.cpp +++ b/indi-celestronaux/celestronaux.cpp @@ -1117,8 +1117,7 @@ bool CelestronAUX::guidePulse(INDI_EQ_AXIS axis, uint32_t ms, int8_t rate) else if (TrackState == SCOPE_TRACKING) { double arcsecs = TRACKRATE_SIDEREAL * ms / 1000.0 * rate / 100.; - double steps = arcsecs * STEPS_PER_ARCSEC; - m_GuideOffset[axis] += steps; + m_GuideOffset[axis] += arcsecs / 3600; } return true; diff --git a/indi-celestronaux/celestronaux.h b/indi-celestronaux/celestronaux.h index b63f7a60e..41c8a35d9 100644 --- a/indi-celestronaux/celestronaux.h +++ b/indi-celestronaux/celestronaux.h @@ -269,7 +269,7 @@ class CelestronAUX : // Guiding offset in steps // For each pulse, we modify the offset so that we can add it to our current tracking traget - int32_t m_GuideOffset[2] = {0, 0}; + double m_GuideOffset[2] = {0, 0}; double m_TrackRates[2] = {TRACKRATE_SIDEREAL, 0}; // approach distance