PushToGo on STM32F429-Disco Board

Dependencies:   BSP_DISCO_F429ZI LCD_DISCO_F429ZI pushtogo usb

Revision:
4:42a64e84f75a
Parent:
1:64c1fd738059
Child:
7:bfd32470c0bc
--- a/telescope_hardware.cpp	Sun Sep 09 16:03:11 2018 -0400
+++ b/telescope_hardware.cpp	Mon Sep 10 02:41:37 2018 -0400
@@ -27,9 +27,12 @@
 AMIS30543StepperDriver *dec_stepper;
 
 /**
- * Clock object
+ * Clock & Location object
  */
 RTCClock clk;
+LocationProvider location;
+
+
 
 /**
  * SD card reader hardware configuration
@@ -110,9 +113,7 @@
 			TelescopeConfiguration::getBool("dec_invert"));
 	ra_axis = new AdaptiveAxis(stepsPerDeg, ra_stepper, "RA_Axis");
 	dec_axis = new AdaptiveAxis(stepsPerDeg, dec_stepper, "DEC_Axis");
-	eq_mount = new EquatorialMount(*ra_axis, *dec_axis, clk,
-			LocationCoordinates(TelescopeConfiguration::getDouble("latitude"),
-					TelescopeConfiguration::getDouble("longitude")));
+	eq_mount = new EquatorialMount(*ra_axis, *dec_axis, clk, location);
 
 	printf("Telescope initialized\n");