Ian Hua / Quadcopter-mbedRTOS
Revision:
12:953d25061417
Parent:
4:01921a136f58
Child:
14:267368c83b6a
diff -r f9fd410c48c2 -r 953d25061417 RTOS-Setup/inc/setup.h
--- a/RTOS-Setup/inc/setup.h	Fri May 02 07:22:09 2014 +0000
+++ b/RTOS-Setup/inc/setup.h	Fri May 02 17:01:56 2014 +0000
@@ -1,6 +1,11 @@
 #include "mbed.h"
 #include "MPU6050_6Axis_MotionApps20.h"
 #include "PID.h"
+#include "MPL3115A2.h"
+
+#ifdef ENABLE_COMPASS
+#include "HMC5883L.h"
+#endif
 
 #ifndef _SETUP_H_
 #define _SETUP_H_
@@ -18,6 +23,12 @@
 extern MPU6050 imu;
 extern uint16_t packetSize;
 
+#ifdef ENABLE_COMPASS
+extern HMC5883L compass;
+#endif
+
+extern MPL3115A2 altimeter;
+
 //extern DigitalOut LED[];
 
 extern PID yawPIDrate;
@@ -31,5 +42,9 @@
 bool setup_bt(void);
 bool setup_PID(void);
 bool setup_mpu6050(void);
+#ifdef ENABLE_COMPASS
+bool setup_compass(void);
+#endif
+bool setup_altimeter(void);
 
 #endif