Telescope Control Library

Dependents:   PushToGo-F429

Revision:
19:fd854309cb4c
Parent:
17:7e47bc1630c0
--- a/EquatorialMount.cpp	Sun Sep 23 02:32:42 2018 -0400
+++ b/EquatorialMount.cpp	Mon Sep 24 19:36:48 2018 -0400
@@ -402,9 +402,11 @@
 
 			curr_dir = ra.getCurrentDirection(); // Current direction
 
+
 			double trackSpeed = ra.getTrackSpeedSidereal() * sidereal_speed;
 			double absSpeed = nudgeSpeed;
 
+
 			if (ra_dir == AXIS_ROTATE_POSITIVE) {
 				// Same direction as tracking
 				absSpeed = nudgeSpeed + trackSpeed;
@@ -412,6 +414,7 @@
 			} else if (nudgeSpeed < trackSpeed) { // ra_dir == AXIS_ROTATE_NEGATIVE
 												  // Partially canceling the tracking speed
 				absSpeed = trackSpeed - nudgeSpeed;
+				ra_dir = AXIS_ROTATE_POSITIVE; // Rotate in the tracking direction
 			} else if (nudgeSpeed > trackSpeed) {// ra_dir == AXIS_ROTATE_NEGATIVE
 												 // Direction inverted
 				absSpeed = nudgeSpeed - trackSpeed;