Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: CalibrateMagneto QuaternionMath
Fork of SML2 by
GyroscopeMPU.h
- Committer:
- pvaibhav
- Date:
- 2015-05-27
- Revision:
- 46:fd5a62296b12
- Parent:
- 40:8e852115fe55
File content as of revision 46:fd5a62296b12:
#ifndef _H_GYROSCOPEMPU_H
#define _H_GYROSCOPEMPU_H
#include "I2CPeripheral.h"
#include "Sensor.h"
class GyroscopeMPU : public I2CPeripheral, public Sensor
{
public:
GyroscopeMPU(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
