Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: RTOS-Setup/inc/setup.h
- 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];