Implemented first Hangar-Service

Dependencies:   CalibrateMagneto QuaternionMath

Fork of SML2 by TobyRich GmbH

Gyroscope.h

Committer:
pvaibhav
Date:
2015-03-13
Revision:
12:1632d7391453
Parent:
8:cba37530d480
Child:
32:d37447aec6b4

File content as of revision 12:1632d7391453:

#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();

protected:
    InterruptIn int1;
};

#endif//_H_GYROSCOPE_H