Implemented first Hangar-Service
Dependencies: CalibrateMagneto QuaternionMath
Fork of SML2 by
Diff: Gyroscope.h
- Revision:
- 5:b9f2f62a8f90
- Parent:
- 4:e759b8c756da
- Child:
- 6:c12cea26842d
--- a/Gyroscope.h Fri Jan 23 13:00:46 2015 +0000 +++ b/Gyroscope.h Thu Feb 12 17:17:35 2015 +0000 @@ -3,9 +3,26 @@ #include "I2CPeripheral.h" +extern uint32_t ticks; + +typedef struct { + int16_t x; + int16_t y; + int16_t z; +} frame_t; + +extern frame_t frame; + class Gyroscope : public I2CPeripheral { public: Gyroscope(I2C &i2c); + void handleInterrupt(void); + void deepSuspend(); + void powerOn(); + void startDataCapture(); + +protected: + InterruptIn int1; }; #endif//_H_GYROSCOPE_H \ No newline at end of file