NXP Group 13 / Mbed 2 deprecated Car3

Dependencies:   camera mbed tsi_sensor

Fork of Car2 by Zach Matthews

Revision:
18:8dbd05e65211
Parent:
17:846417c48571
Child:
19:25f22034a3e2
--- a/main.cpp	Fri Mar 31 19:31:34 2017 +0000
+++ b/main.cpp	Sun Apr 02 23:04:56 2017 +0000
@@ -6,9 +6,9 @@
 #define MIN_TURN_RATIO 0
 #define MAX_TURN_RATIO 1
 #define MIN_SPEED 0.15
-#define MAX_SPEED 0.4
+#define MAX_SPEED 0.5
 #define TURN_TIME 0
-#define STRAIGHT_TIME 10
+#define STRAIGHT_TIME 15
 #define DEFAULT_THRESHOLD 65
 #define BLIND_LENGTH 30
 #define DIFF_RATIO 0.5
@@ -122,7 +122,7 @@
     DIR_L = 0;
     servo.period(0.020f);
     while(1){
-        wait_ms(10);
+        wait_ms(5);
         cam.capture();
         //display(cam.imageData);
         turnWheels(cam.imageData);