Code for an autonomous plane I'm building. Includes process scheduling, process communication, and hardware sensor interfacing (via I2C). NOTE: currently in development, source code will be updated frequently.

Dependencies:   mbed

Revision:
2:452dd766d212
Parent:
1:1abb115c2005
Child:
4:44a5b1e8fd27
--- a/control.cpp	Wed Oct 30 22:51:33 2013 +0000
+++ b/control.cpp	Fri Nov 01 00:48:06 2013 +0000
@@ -7,23 +7,20 @@
 
 process procs[MAXPROC] = {0};
 
-void schedule();
-void init_procs();
-
-
 int main()
 {
-    /*init_procs();
+    init();
     while (true)
     {
-        get_sensor_data();
         schedule();
-    }*/
-    get_sensor_data();
+    }
 }
 
-void init_procs()
+void init()
 {
+    // initialize i2c sensors
+    init_sensors();
+    // set initial processes
     procs[0].status = READY;
     procs[0].start = &get_sensor_data;
     return;