Hello world program that just gets the m3pi moving

Dependencies:   mbed m3pi

Files at this revision

API Documentation at this revision

Comitter:
chris
Date:
Wed Nov 10 09:05:39 2010 +0000
Parent:
4:df6b8eaf293f
Child:
6:602fc2239837
Commit message:
Updated to latest m3pi library

Changed in this revision

m3pi.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
--- a/m3pi.lib	Sun Nov 07 10:52:06 2010 +0000
+++ b/m3pi.lib	Wed Nov 10 09:05:39 2010 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/chris/code/m3pi/#09fb0636207b
+http://mbed.org/users/chris/code/m3pi/#62ee1486ecb9
--- a/main.cpp	Sun Nov 07 10:52:06 2010 +0000
+++ b/main.cpp	Wed Nov 10 09:05:39 2010 +0000
@@ -5,14 +5,13 @@
 
 int main() {
 
-
-
     m3pi.locate(0,1);
     m3pi.printf("LO World");
-    wait(5.0);
+
+    wait (2.0);
 
-    m3pi.forward(0.5);
-    wait (0.5);
+    m3pi.forward(1.0); // Forward half speed
+    wait (0.5);        // For half a second
     m3pi.left(0.5);
     wait (0.5);
     m3pi.backward(0.5);