Library for the m3pi robot. This works with a Pololu 3pi robot with the Serial Slave firmware, and exposes and API. This is a fork of cstyles m3pi library.

Fork of m3pi_ng by Nikolas Goldin

Files at this revision

API Documentation at this revision

Comitter:
ngoldin
Date:
Tue Oct 15 12:49:35 2013 +0000
Parent:
11:7bfb33432791
Commit message:
Switched left_motor and right_motor. Was the wrong way around before.

Changed in this revision

m3pi_ng.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/m3pi_ng.cpp	Fri May 17 14:04:12 2013 +0000
+++ b/m3pi_ng.cpp	Tue Oct 15 12:49:35 2013 +0000
@@ -94,11 +94,11 @@
 }
 
 void m3pi::left_motor (float speed) {
-    motor(0,speed);
+    motor(1,speed);
 }
 
 void m3pi::right_motor (float speed) {
-    motor(1,speed);
+    motor(0,speed);
 }
 
 void m3pi::forward (float speed) {