Code for the car to drive in a figure eight motion

Dependencies:   mbed-rtos mbed MODSERIAL mbed-dsp telemetry

Revision:
17:3b545dc0c800
Parent:
14:09d61b20b102
Parent:
16:fa13ac00f583
Child:
18:16f1297a4260
Child:
21:a9e9aa7da8db
--- a/main.cpp	Fri Mar 20 04:26:58 2015 +0000
+++ b/main.cpp	Fri Mar 20 04:29:02 2015 +0000
@@ -38,7 +38,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++;
     }
 }