A program that allows control of the RenBuggy by altering the relative speeds of the wheels.

Dependencies:   mbed-renbed

Revision:
2:949a87c7042f
Parent:
1:dd956fbd7e95
Child:
3:c12fbf373785
--- a/TimedMovement.cpp	Thu Mar 31 10:54:09 2016 +0000
+++ b/TimedMovement.cpp	Thu Mar 31 15:27:25 2016 +0000
@@ -45,6 +45,7 @@
     to the function before continuing. wait() is a function 
     provided from mbed.h */
     wait(time);
+    stop();
 }
 
 /****************************************************************
@@ -62,6 +63,7 @@
     Rmotor = 1.0;
     Lmotor = 0.2;
     wait(time);
+    stop();
 }
 
 /****************************************************************
@@ -79,6 +81,7 @@
     Lmotor = 1.0;
     Rmotor = 0.2;
     wait(time);
+    stop();
 }
 
 /****************************************************************
@@ -90,7 +93,7 @@
 *                                                               *
 * Returns: none                                                 *
 ****************************************************************/
-extern void stop()
+static void stop()
 {
     Lmotor = Rmotor = 0;
 }