Telescope Control Library

Dependents:   PushToGo-F429

Revision:
18:3ea58b079adc
Parent:
0:6cb2eaf8b133
--- a/CelestialMath.h	Fri Sep 14 21:09:02 2018 -0400
+++ b/CelestialMath.h	Sun Sep 23 02:32:42 2018 -0400
@@ -140,13 +140,13 @@
 {
 	EquatorialCoordinates star_ref; /// Reference position of the star in the sky (in current epoch)
 	MountCoordinates star_meas;	/// Measured position of the star in mount coordinates
-	time_t timestamp;				/// UTC timestamp of the measurement
+	double timestamp;				/// UTC timestamp of the measurement
 	AlignmentStar()
 	{
 		timestamp = 0;
 	}
 	AlignmentStar(const EquatorialCoordinates & ref, MountCoordinates meas,
-			time_t t) :
+			double t) :
 			star_ref(ref), star_meas(meas), timestamp(t)
 	{
 	}
@@ -189,14 +189,14 @@
 			const LocationCoordinates &loc);
 	static LocalEquatorialCoordinates azimuthalToLocalEquatorial(
 			const AzimuthalCoordinates &b, const LocationCoordinates &loc);
-	static double getGreenwichMeanSiderealTime(time_t timestamp);
-	static double getLocalSiderealTime(time_t timestamp,
+	static double getGreenwichMeanSiderealTime(double timestamp);
+	static double getLocalSiderealTime(double timestamp,
 			const LocationCoordinates &loc);
 	static LocalEquatorialCoordinates equatorialToLocalEquatorial(
-			const EquatorialCoordinates &e, time_t timestamp,
+			const EquatorialCoordinates &e, double timestamp,
 			const LocationCoordinates &loc);
 	static EquatorialCoordinates localEquatorialToEquatorial(
-			const LocalEquatorialCoordinates &a, time_t timestamp,
+			const LocalEquatorialCoordinates &a, double timestamp,
 			const LocationCoordinates &loc);
 
 	/*Misalignment correction functions*/
@@ -302,7 +302,7 @@
 	 * Calculate King tracking rate based on the star position and location
 	 */
 	static double kingRate(EquatorialCoordinates eq, LocationCoordinates loc,
-			time_t time);
+			double time);
 
 };