E=MC / Mbed 2 deprecated figure_eight

Dependencies:   mbed-rtos mbed MODSERIAL mbed-dsp telemetry

Files at this revision

API Documentation at this revision

Comitter:
ericoneill
Date:
Fri Mar 20 03:34:38 2015 +0000
Parent:
11:f8aa39c19477
Child:
13:97708869a4ba
Commit message:
random commit

Changed in this revision

linecam.h Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/linecam.h	Fri Mar 20 02:54:21 2015 +0000
+++ b/linecam.h	Fri Mar 20 03:34:38 2015 +0000
@@ -0,0 +1,13 @@
+#ifndef LINECAM_H
+#define LINECAM_H
+
+class Linecam{
+    float ADCdata [128];
+    float track_centers [128];
+    bool track_crossings [128];
+    bool track_found [128];
+    
+    
+}
+
+#endif
\ No newline at end of file
--- a/main.cpp	Fri Mar 20 02:54:21 2015 +0000
+++ b/main.cpp	Fri Mar 20 03:34:38 2015 +0000
@@ -16,23 +16,20 @@
 // Interrupt for encoder
 InterruptIn interrupt(PTA13);
 
-void read_sensors(){
-    
-}
+float line [128];
+Mutex line_mutex;
 
-void actuate(){
-    
-}
 void linecam_thread(void const *args){
+    while
+    line_mutex.lock();
     
 }
 
 
 int main() {
     Thread thread(linecam_thread);
-    Encoder encoder = 
+    
     while(1) {
-        read_sensors();
-        actuate();
+        
     }
 }