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.
Diff: Gyro.h
- Revision:
- 14:76a56d517103
- Parent:
- 9:557628b373ea
- Child:
- 16:05b9e44889f1
--- a/Gyro.h Tue Nov 27 02:33:09 2018 +0000 +++ b/Gyro.h Tue Nov 27 05:23:44 2018 +0000 @@ -6,14 +6,17 @@ #include <string> #include <sstream> using namespace std; +#include "mbed.h" #include "typedef.h" class Gyro { /* * Varialbles */ +#define BAUD_RATE4_6AXIS 115200 private: + Serial sp46Axis; float accZ; float gyroZ; float yaw; @@ -25,7 +28,7 @@ void PushBuf(UCHAR rxChar); void uartRxIntHndler46Axis(); public: - Gyro(); + Gyro(PinName pinTx, PinName pinRx); virtual ~Gyro(); float GetAngularRate(); float GetAccel();