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:
12:da96e2f87465
Child:
13:4e77264f254a
diff -r 53de69b1840b -r da96e2f87465 main.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.h	Mon Nov 21 17:19:05 2016 +0000
@@ -0,0 +1,13 @@
+
+typedef struct {
+    float Kp;
+    float Ki;
+    float Kd;
+    float dt;
+    float p_error;
+    float pid_error;
+    float integral;
+    float measured_value, desired_value, derivative;
+    float output;
+} pid_instance;
+