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:
36:7f482c048387
Parent:
35:e23354abf352
Parent:
33:0fc789c09694
Child:
37:3baddde964db
diff -r e23354abf352 -r 7f482c048387 main.cpp
--- a/main.cpp	Thu Jan 12 13:29:53 2017 +0000
+++ b/main.cpp	Fri Jan 13 09:50:06 2017 +0000
@@ -244,7 +244,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);
             }
                
@@ -621,7 +623,7 @@
     
     
 }                                              
-
+//motor controll specific(newfunction)