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:
43:649473c5a12b
Parent:
41:d74878640739
Child:
45:3435bdd2d487
--- a/main.h	Wed Jan 25 15:46:50 2017 +0000
+++ b/main.h	Mon Mar 20 11:55:20 2017 +0000
@@ -3,7 +3,7 @@
 #define CAM_DIFF 10
 #define WHEEL_RADIUS 0.025f
 #define RIGHT_MOTOR_COMPENSATION_RATIO 1.1586276
-#define USE_COMMS 1
+#define USE_COMMS 0
 
 #define CLOSE_CAMERA TFC_LineScanImage0
 #define LOOKAHEAD_CAMERA TFC_LineScanImage1
@@ -42,6 +42,7 @@
     float output;
 } pid_instance;
 
+extern void writeFloat(float f);
 extern float readFloat();
 extern inline void handleComms();
 extern void sendString(const char *format, ...);
@@ -60,6 +61,12 @@
 extern inline float getLineEntropy();
 extern inline void initSpeedSensors();
 
+// Startup buttons
+bool aDown = false;
+bool bDown = false;
+int b_pressed = 0;
+uint8_t led_values[] = {1,3,7,15};
+
 
 //Woo global variables!
 bool onTrack;