Implemented first Hangar-Service
Dependencies: CalibrateMagneto QuaternionMath
Fork of SML2 by
Gyroscope.h
- Committer:
- pvaibhav
- Date:
- 2015-02-12
- Revision:
- 5:b9f2f62a8f90
- Parent:
- 4:e759b8c756da
- Child:
- 6:c12cea26842d
File content as of revision 5:b9f2f62a8f90:
#ifndef _H_GYROSCOPE_H #define _H_GYROSCOPE_H #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