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
Gyroscope.h
00001 #ifndef _H_GYROSCOPE_H 00002 #define _H_GYROSCOPE_H 00003 00004 #include "I2CPeripheral.h" 00005 #include "Sensor.h" 00006 00007 class Gyroscope : public I2CPeripheral, public Sensor 00008 { 00009 public: 00010 Gyroscope(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 volatile bool interruptSet; 00021 00022 protected: 00023 InterruptIn int1; 00024 InterruptIn int2; 00025 size_t tick; 00026 }; 00027 00028 #endif//_H_GYROSCOPE_H
Generated on Wed Jul 13 2022 08:50:41 by
