Skip to content

Commit

Permalink
guide offset units fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ijessen committed Dec 20, 2023
1 parent 56f87ed commit 2e9d4f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions indi-celestronaux/celestronaux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion indi-celestronaux/celestronaux.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2e9d4f1

Please sign in to comment.