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:
3:f9e18a9cd9af
Parent:
2:452dd766d212
Child:
4:44a5b1e8fd27
--- a/sensor.h	Fri Nov 01 00:48:06 2013 +0000
+++ b/sensor.h	Fri Nov 01 01:23:04 2013 +0000
@@ -10,7 +10,7 @@
 #define accel_w 0xA6
 #define ACCEL_X 0x32 // x: 0x32,0x33 y: 0x34,0x35 z: 0x36,0x37 Little Endian!!! (x = 0x33<<8|0x22). 2's complement 16bit
 #define ACCEL_POWER_CTL 0x2D
-#define gyro_w 0xD0
+#define gyro_w 0xD2
 #define GYRO_X 0x28 // x: 0x28,0x29 y: 0x2A,0x2B z: 0x2C,0x2D Little Endian! (x = 0x28<<8|0x22). 2's complement 16bit
 #define GYRO_CTRL_REG1 0x20
 #define compass_w 0x3C
@@ -51,8 +51,8 @@
 
 int config_accelerometer(void);
 int config_gyro(void);
-void config_compass(void);
-void config_barometer(void);
+int config_compass(void);
+int config_barometer(void);
 
 int config_gy80(struct config *c);