Skip to content

Commit

Permalink
Astrotrac 360 Driver Motion Control Issue (indilib#2052)
Browse files Browse the repository at this point in the history
Moving the mount N/S or E/W via the motion buttons in the indi "Motion
Control" tab can inadvertently change the tracking state, even if the
scope is idle, because the MoveNS and MoveWE functions always apply the
custom tracking rates, which are set to sidereal by default, when motion
is stopped. Fixed this issue by calling SetTrackEnabled when motion is
stopped to reset tracking. Tested with my Astrotrac 360 mount.
  • Loading branch information
astranomics authored May 5, 2024
1 parent abb286a commit dc91b21
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/telescope/astrotrac.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,8 @@ bool AstroTrac::MoveNS(INDI_DIR_NS dir, TelescopeMotionCommand command)
}
else
{
setVelocity(AXIS_DE, TrackRateN[AXIS_DE].value);
// reset tracking
SetTrackEnabled(TrackState == SCOPE_TRACKING);
stopMotion(AXIS_DE);
}

Expand All @@ -903,7 +904,8 @@ bool AstroTrac::MoveWE(INDI_DIR_WE dir, TelescopeMotionCommand command)
}
else
{
setVelocity(AXIS_RA, TrackRateN[AXIS_RA].value);
// reset tracking
SetTrackEnabled(TrackState == SCOPE_TRACKING);
stopMotion(AXIS_RA);
}

Expand Down

0 comments on commit dc91b21

Please sign in to comment.