This adds to the existing m3pi mbed library to add driving commands with speeds as integers ranging from -255 for 255, as does the serial slave program for the m3pi. Library for the m3pi robot. This works with a Pololu 3pi robot with the Serial Slave firmware, and exposes an API.

Fork of m3pi by Chris Styles

Files at this revision

API Documentation at this revision

Comitter:
chris
Date:
Wed Nov 10 09:01:21 2010 +0000
Parent:
5:09fb0636207b
Child:
7:9b128cebb3c2
Commit message:
Changed delay after reset to 0.1 to stop the LCD getting corrupted

Changed in this revision

m3pi.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/m3pi.cpp	Sun Nov 07 10:49:56 2010 +0000
+++ b/m3pi.cpp	Wed Nov 10 09:01:21 2010 +0000
@@ -34,7 +34,7 @@
     _nrst = 0;
     wait (0.01);
     _nrst = 1;
-    wait (0.01);
+    wait (0.1);
 }
 
 void m3pi::left_motor (float speed) {