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
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
Generated on Wed Jul 13 2022 08:50:41 by
