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.
Gyro.h
- Committer:
- takeru0x1103
- Date:
- 2018-11-30
- Revision:
- 17:f9610f3cfa1b
- Parent:
- 16:05b9e44889f1
File content as of revision 17:f9610f3cfa1b:
#ifndef GYRO_H #define GYRO_H #include <iostream> #include <vector> #include <string> #include <sstream> using namespace std; #include "mbed.h" #include "typedef.h" class Gyro { private: Serial sp46Axis; // INT16 gyroZ; float yaw; float yaw_ref; // void PushBuf(UCHAR rxChar); void uartRxIntHndler46Axis(); public: Gyro(PinName pinTx, PinName pinRx); virtual ~Gyro(); short GetAngularRate(); float GetAngle(); void SetYawRef(); }; #endif