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:
- 16:05b9e44889f1
- Parent:
- 14:76a56d517103
- Child:
- 17:f9610f3cfa1b
--- a/Gyro.h Tue Nov 27 05:23:44 2018 +0000 +++ b/Gyro.h Wed Nov 28 01:31:46 2018 +0000 @@ -13,12 +13,13 @@ /* * Varialbles */ + #define BAUD_RATE4_6AXIS 115200 private: Serial sp46Axis; float accZ; - float gyroZ; + INT16 gyroZ; float yaw; float yaw_ref; /* @@ -30,7 +31,7 @@ public: Gyro(PinName pinTx, PinName pinRx); virtual ~Gyro(); - float GetAngularRate(); + short GetAngularRate(); float GetAccel(); float GetAngle(); void SetYawRef();