.

Dependencies:   Servo mbed

Revision:
18:9508bece39b0
Parent:
17:054a54d73e04
--- a/main.cpp	Fri Apr 24 01:17:54 2015 +0000
+++ b/main.cpp	Fri Apr 24 01:31:57 2015 +0000
@@ -154,9 +154,10 @@
 
 // Encoder and Motor Driver Functions ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
-float PIDcontrol(int lineCenter, int loopCtr){
+float PIDcontrol(float lineCenter, int loopCtr){
     //centerSum += lineCenter;
     float newLineCenter = (float)lineCenter/127.0f;
+    pdLineCenter[loopCtr] = newLineCenter;
     float newTime = t.read();
     timeDiff = newTime - lastTime;
     lastTime = newTime;