PushToGo on STM32F429-Disco Board

Dependencies:   BSP_DISCO_F429ZI LCD_DISCO_F429ZI pushtogo usb

Revision:
1:64c1fd738059
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/AdaptiveAxis.h	Sun Sep 09 19:03:27 2018 +0000
@@ -0,0 +1,38 @@
+/*
+ * AdaptiveAxis.h
+ *
+ *  Created on: 2018Äê2ÔÂ24ÈÕ
+ *      Author: caoyuan9642
+ */
+
+#ifndef PUSHTOGO_ADAPTIVEAXIS_H_
+#define PUSHTOGO_ADAPTIVEAXIS_H_
+
+#include <Axis.h>
+
+/**
+ * Implements class Axis that allows different modes for slewing and tracking
+ */
+class AdaptiveAxis: public Axis
+{
+public:
+	AdaptiveAxis(double stepsPerDeg, StepperMotor *stepper, const char *name =
+			"Axis") :
+			Axis(stepsPerDeg, stepper, name)
+	{
+		idle_mode(); // Initialize as IDLE
+	}
+	virtual ~AdaptiveAxis()
+	{
+	}
+
+protected:
+
+	void slew_mode();
+	void track_mode();
+	void correction_mode();
+	void idle_mode();
+};
+
+#endif /* PUSHTOGO_ADAPTIVEAXIS_H_ */
+