A simple line following program

Dependencies:   mbed

Revision:
5:c705b7e7e1a8
Parent:
3:7f077cf1d755
Child:
6:8f46c6ac55ca
--- a/main.cpp	Sun Nov 07 10:52:21 2010 +0000
+++ b/main.cpp	Wed Nov 10 09:05:50 2010 +0000
@@ -6,10 +6,11 @@
 
 int main() {
 
-
     m3pi.locate(0,1);
     m3pi.printf("Line Flw");
 
+    wait(2.0);
+
     float position_of_line = 0.0;
     m3pi.sensor_auto_calibrate();
     float speed = 0.4;
@@ -31,7 +32,7 @@
             m3pi.left_motor(speed - 0.3);
             leds = 0x2;
         }
-        // Line is inthe middle
+        // Line is in the middle
         else {
             m3pi.forward(speed);
             leds = 0x0;