GDP 4 / Mbed 2 deprecated pid-car-example

Dependencies:   FRDM-TFC mbed CBuffer XBEE mbed_angular_speed motor2 MMA8451Q

Fork of KL25Z_Camera_Test by GDP 4

Files at this revision

API Documentation at this revision

Comitter:
lh14g13
Date:
Wed Jan 11 11:18:03 2017 +0000
Parent:
29:b5b31256572b
Commit message:
added changes to the motor library

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
motor2.lib Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Tue Jan 10 11:24:13 2017 +0000
+++ b/main.cpp	Wed Jan 11 11:18:03 2017 +0000
@@ -74,7 +74,7 @@
             TFC_LineScanImageReady=0;
             
             // Slow down, adjust PID values and enable differential before corners.
-            //handleCornering();
+            handleCornering();
             
             // Run the PID controllers and adjust steering/motor accordingly
             PIDController();
@@ -202,7 +202,7 @@
     }
     */
     
-    if(false) {
+    if(true) {
         
         //default
         //TFC_SetMotorPWM(0.4,0.4);
@@ -401,7 +401,7 @@
         sendString("Start/stop seen");
         TFC_SetMotorPWM(0.f,0.f);
         TFC_HBRIDGE_DISABLE;
-        lapTime();
+        //lapTime();
     }
   //  slower++;
     
@@ -626,7 +626,7 @@
     
     sendString("For lap number: %d  Lap Time: %f  Avergae time: %f \n\r", lapNo,lapTime,avgTime);
     
-     // OH WHAT UP IT'S DAT BOI!!!!
+     
     return 0;
 }
 
--- a/motor2.lib	Tue Jan 10 11:24:13 2017 +0000
+++ b/motor2.lib	Wed Jan 11 11:18:03 2017 +0000
@@ -1,1 +1,1 @@
-http://developer.mbed.org/teams/GDP-4/code/motor2/#96c36a38d83b
+http://developer.mbed.org/teams/GDP-4/code/motor2/#98aecf1889ed