Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for "Can not change rate while motor is running (direction differs)" error when guiding #369

Merged
merged 1 commit into from Mar 28, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions indi-eqmod/skywatcher.cpp
Expand Up @@ -1010,6 +1010,7 @@ void Skywatcher::SetRARate(double rate)
newstatus.speedmode = HIGHSPEED;
else
newstatus.speedmode = LOWSPEED;
ReadMotorStatus(Axis1);
if (RARunning)
{
if (newstatus.speedmode != RAStatus.speedmode)
Expand Down Expand Up @@ -1053,6 +1054,7 @@ void Skywatcher::SetDERate(double rate)
newstatus.speedmode = HIGHSPEED;
else
newstatus.speedmode = LOWSPEED;
ReadMotorStatus(Axis2);
if (DERunning)
{
if (newstatus.speedmode != DEStatus.speedmode)
Expand Down