Implemented first Hangar-Service

Dependencies:   CalibrateMagneto QuaternionMath

Fork of SML2 by TobyRich GmbH

Gyroscope.h

Committer:
pvaibhav
Date:
2015-02-12
Revision:
6:c12cea26842d
Parent:
5:b9f2f62a8f90
Child:
8:cba37530d480

File content as of revision 6:c12cea26842d:

#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 Sensor::Data read();
    
protected:
    InterruptIn int1;
    Timer timer;
};

#endif//_H_GYROSCOPE_H