This is the code we showed at Uncraftivism

Dependencies:   mbed

Revision:
0:57f4fdadc97f
Child:
1:70d90598d2e7
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ServoMinder.h	Fri Nov 20 14:40:48 2009 +0000
@@ -0,0 +1,24 @@
+#pragma once
+#include "Servo.h"
+
+class ServoMinder
+{
+public:
+	ServoMinder( Servo *servo );
+
+	void moveTo( float target );
+
+private:
+	void setSpeed( float speed );
+
+	Servo *m_servo;
+	float m_target;
+	float m_speed;
+
+	float m_delta;
+	float m_tickTime;
+	Ticker m_ticker;
+
+	void tick();
+
+};
\ No newline at end of file