Library for the m3pi robot. This works with a Pololu 3pi robot with the Serial Slave firmware, and exposes and API. Added a read sensors function

Dependents:   pololu_mpi3_V2 pololu_mpi3

Fork of m3pi by Chris Styles

REZO

Files at this revision

API Documentation at this revision

Comitter:
adrienPPS
Date:
Sun Nov 22 02:46:41 2015 +0000
Parent:
10:b84673574e1a
Commit message:
Rectification moteurs

Changed in this revision

m3pi.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/m3pi.cpp	Sun Nov 22 02:25:53 2015 +0000
+++ b/m3pi.cpp	Sun Nov 22 02:46:41 2015 +0000
@@ -43,11 +43,11 @@
 }
 
 void m3pi::left_motor (float speed) {
-    motor(1,speed);
+    motor(0,speed);
 }
 
 void m3pi::right_motor (float speed) {
-    motor(0,speed);
+    motor(1,speed);
 }
 
 void m3pi::forward (float speed) {