Device to measure angle and get IMU measurements.
Dependencies: mbed commands BLE_API nRF51822
Diff: Sensors.h
- Revision:
- 8:c6345e8d607c
- Parent:
- 6:75263c93daf7
--- a/Sensors.h Sun Jun 07 21:59:02 2015 +0000 +++ b/Sensors.h Thu Jun 11 20:59:22 2015 +0000 @@ -10,11 +10,16 @@ int8_t imuData[12]; uint8_t angle[2]; + int8_t angleDummy[2]; + + int8_t sampleFrequencyIMU; public: Sensors (); - void setupIMU(); + int8_t getAngleDummy(int); + + void setupIMU(int8_t); void setupAngle (); void wakeIMU(); @@ -28,6 +33,7 @@ uint8_t getAngle(int); int8_t getIMU(int); int8_t getInterruptStatus(); + int8_t getMotionDetectionStatus(); //Read and write register function for MPU int8_t readRegister(int8_t addr);