Example for AX12 servomotor

Dependencies:   AX12 mbed

Fork of AX12-HelloWorld by Chris Styles

Files at this revision

API Documentation at this revision

Comitter:
chris
Date:
Thu Mar 31 12:03:04 2011 +0000
Parent:
0:f6f8cf11779f
Commit message:

Changed in this revision

AX12.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r f6f8cf11779f -r b12b06e2fc2d AX12.lib
--- a/AX12.lib	Thu Jun 03 14:25:20 2010 +0000
+++ b/AX12.lib	Thu Mar 31 12:03:04 2011 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/chris/code/AX12/#ced71d1b2558
+http://mbed.org/users/chris/code/AX12/#93ad80f5fde7
diff -r f6f8cf11779f -r b12b06e2fc2d main.cpp
--- a/main.cpp	Thu Jun 03 14:25:20 2010 +0000
+++ b/main.cpp	Thu Mar 31 12:03:04 2011 +0000
@@ -4,11 +4,11 @@
 int main() {
 
     AX12 myax12 (p9, p10, 1);
-    
+
     while (1) {
-        myax12.SetGoal(60);  // go to 60 degrees
+        myax12.SetGoal(0);    // go to 0 degrees
         wait (2.0);
-        myax12.SetGoal(240); // go to 240 degrees
+        myax12.SetGoal(300);  // go to 300 degrees
         wait (2.0);
     }
 }
\ No newline at end of file
diff -r f6f8cf11779f -r b12b06e2fc2d mbed.bld
--- a/mbed.bld	Thu Jun 03 14:25:20 2010 +0000
+++ b/mbed.bld	Thu Mar 31 12:03:04 2011 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/029aa53d7323
+http://mbed.org/users/mbed_official/code/mbed/builds/63bcd7ba4912