Control the rotation Speed of an AX12 servo (Continuous rotation mode). This program is based on the AX12 API developped by Chris Styles.

Dependencies:   AX12 mbed

Fork of AX12-HelloWorld by Chris Styles

Revision:
0:f6f8cf11779f
Child:
1:b12b06e2fc2d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Jun 03 14:25:20 2010 +0000
@@ -0,0 +1,14 @@
+#include "mbed.h"
+#include "AX12.h"
+
+int main() {
+
+    AX12 myax12 (p9, p10, 1);
+    
+    while (1) {
+        myax12.SetGoal(60);  // go to 60 degrees
+        wait (2.0);
+        myax12.SetGoal(240); // go to 240 degrees
+        wait (2.0);
+    }
+}
\ No newline at end of file