teamALI / Mbed 2 deprecated HB2018

Dependencies:   mbed FreeRTOS

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();