Bremen Team - Hangar / SML2

Dependencies:   CalibrateMagneto QuaternionMath

Fork of SML2 by TobyRich GmbH

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers GyroscopeMPU.h Source File

GyroscopeMPU.h

00001 #ifndef _H_GYROSCOPEMPU_H
00002 #define _H_GYROSCOPEMPU_H
00003 
00004 #include "I2CPeripheral.h"
00005 #include "Sensor.h"
00006 
00007 class GyroscopeMPU : public I2CPeripheral, public Sensor
00008 {
00009 public:
00010     GyroscopeMPU(I2C &i2c);
00011 
00012     void handleInterrupt(void);
00013 
00014     virtual void powerOff();
00015     virtual bool powerOn();
00016     virtual void start();
00017     virtual void stop();
00018     virtual Vector3 read();
00019 
00020 protected:
00021     InterruptIn int1;
00022 };
00023 
00024 #endif//_H_GYROSCOPE_H