Initial Commit

Dependencies:   mbed HC05 QEI MODSERIAL SWSPI mbed-rtos

Files at this revision

API Documentation at this revision

Comitter:
Throwbot
Date:
Tue Oct 21 14:02:19 2014 +0000
Parent:
4:81b0de07841f
Child:
6:5ab1735265a9
Commit message:
Working code using 50:1 motors

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Tue Oct 14 17:55:37 2014 +0000
+++ b/main.cpp	Tue Oct 21 14:02:19 2014 +0000
@@ -69,8 +69,8 @@
     if(Last_Error_Left==100) {
         Linput=0;
     }
-    *motors.Left = Linput;          // HARSH change to -Linput for black and Linput for blue
-    *motors.Right = -Rinput;        //// HARSH change to Rinput for black and -Rinput for blue
+    *motors.Left = -Linput;          // HARSH change to -Linput for black and Linput for blue
+    *motors.Right = Rinput;        //// HARSH change to Rinput for black and -Rinput for blue
 }
 char c;
 char buffer[10];
@@ -108,7 +108,7 @@
     bt.gets(buffer, 2);
     if(buffer[0]=='A') {
         Selected_robot='A';
-        imperial_march();
+        //imperial_march();
 
     } else if(buffer[0]=='F') {
         Selected_robot='F';