Ian Hua / Quadcopter-mbedRTOS
Revision:
48:9dbdc4144f00
Parent:
39:02782ad251db
Child:
49:c882f9135033
--- a/RTOS-Setup/inc/setup.h	Sat May 17 11:57:09 2014 +0000
+++ b/RTOS-Setup/inc/setup.h	Mon May 19 13:21:17 2014 +0000
@@ -2,7 +2,7 @@
  * Author:  Trung Tin Ian HUA
  * Date:    May 2014
  * Purpose: Setup code to initialise all devices.
- */ 
+ */
 //#define TIME_TASK1
 //#define TIME_TASK2M
 //#define TIME_TASK2S
@@ -11,6 +11,7 @@
 
 #include "mbed.h"
 #include "MPU6050_6Axis_MotionApps20.h"
+#include "MPU6050_6Axis_MotionApps20_NB.h"
 #include "PID.h"
 #include "MPL3115A2.h"
 
@@ -39,7 +40,9 @@
 /* Sensors and devices: */
 extern Serial BT;
 extern DigitalOut BT_CMD;
-extern MPU6050 imu;
+extern AnalogIn voltageSense;
+//extern MPU6050 imu;
+extern MPU6050_NB imu_nb;
 extern uint16_t packetSize;
 extern MPL3115A2 altimeter;
 extern PwmOut ESC[4];