car using PID from centre line

Dependencies:   FRDM-TFC mbed CBuffer XBEE mbed_angular_speed motor2 MMA8451Q

Fork of KL25Z_Camera_Test by GDP 4

Revision:
33:0fc789c09694
Parent:
32:6829684f8c4d
Child:
36:7f482c048387
--- a/main.cpp	Wed Jan 11 19:59:03 2017 +0000
+++ b/main.cpp	Thu Jan 12 11:06:41 2017 +0000
@@ -243,7 +243,9 @@
             } else {
                 //sendString("stop turning turned=%d",turning);
                 keepTurning = 0;
-                turning = 0;    
+                turning = 0;   
+                left_motor_pid.desired_value=speed;
+                right_motot_pid.desired_value=speed; 
                 TFC_SetMotorPWM(speed,speed);
             }
                
@@ -617,7 +619,7 @@
     
     
 }                                              
-
+//motor controll specific(newfunction)