Code for the car to drive in a figure eight motion

Dependencies:   mbed-rtos mbed MODSERIAL mbed-dsp telemetry

Revision:
16:fa13ac00f583
Parent:
13:97708869a4ba
Child:
17:3b545dc0c800
--- a/main.cpp	Fri Mar 20 04:04:04 2015 +0000
+++ b/main.cpp	Fri Mar 20 04:27:34 2015 +0000
@@ -37,7 +37,20 @@
     thread.set_priority(osPriorityIdle);
     //thread.set_priority(-3);
     
+    int integrationCounter = 0;
     while(1) {
+        if(integrationCounter % 151== 0){
+            
+        }
+        else if (integrationCounter > 129){
+        }
+        else{
+            clk = 1;
+            wait_us(50);
+            line[integrationCounter - 1] = camData;
+            clk = 0;
+        }
         
+        integrationCounter++;
     }
 }