Implemented first Hangar-Service
Dependencies: CalibrateMagneto QuaternionMath
Fork of SML2 by
Gyroscope.h
- Committer:
- pvaibhav
- Date:
- 2015-05-26
- Revision:
- 40:8e852115fe55
- Parent:
- 39:1fa9c0e1ffde
- Child:
- 44:5483079fa156
- Child:
- 46:fd5a62296b12
File content as of revision 40:8e852115fe55:
#ifndef _H_GYROSCOPE_H #define _H_GYROSCOPE_H #include "I2CPeripheral.h" #include "Sensor.h" class Gyroscope : public I2CPeripheral, public Sensor { public: Gyroscope(I2C &i2c); void handleInterrupt(void); virtual void powerOff(); virtual bool powerOn(); virtual void start(); virtual void stop(); virtual Vector3 read(); volatile bool interruptSet; protected: InterruptIn int1; InterruptIn int2; size_t tick; }; #endif//_H_GYROSCOPE_H