Telescope Control Library

Dependents:   PushToGo-F429

Revision:
18:3ea58b079adc
Parent:
10:e356188d208e
--- a/EquatorialMount.h	Fri Sep 14 21:09:02 2018 -0400
+++ b/EquatorialMount.h	Sun Sep 23 02:32:42 2018 -0400
@@ -209,7 +209,7 @@
 	MountCoordinates convertToMountCoordinates(
 			const EquatorialCoordinates &eq) {
 		LocalEquatorialCoordinates leq =
-				CelestialMath::equatorialToLocalEquatorial(eq, clock.getTime(),
+				CelestialMath::equatorialToLocalEquatorial(eq, clock.getTimeHighResolution(),
 						loc.getLocation());
 		// Apply PA misalignment
 		leq = CelestialMath::applyMisalignment(leq, calibration.pa,
@@ -231,7 +231,7 @@
 				mc - calibration.offset);
 		leq = CelestialMath::deapplyConeError(leq, calibration.cone);
 		leq = CelestialMath::deapplyMisalignment(leq, calibration.pa, loc.getLocation());
-		return CelestialMath::localEquatorialToEquatorial(leq, clock.getTime(),
+		return CelestialMath::localEquatorialToEquatorial(leq, clock.getTimeHighResolution(),
 				loc.getLocation());
 	}
 
@@ -284,7 +284,7 @@
 	 */
 	AlignmentStar makeAlignmentStar(const EquatorialCoordinates star_ref) {
 		updatePosition();
-		return AlignmentStar(star_ref, curr_pos, clock.getTime());
+		return AlignmentStar(star_ref, curr_pos, clock.getTimeHighResolution());
 	}
 
 	/**