teamALI / Mbed 2 deprecated HB2018

Dependencies:   mbed FreeRTOS

Revision:
9:557628b373ea
Parent:
8:1ca49cb18290
Child:
14:76a56d517103
--- a/Gyro.h	Mon Nov 26 13:58:16 2018 +0000
+++ b/Gyro.h	Tue Nov 27 02:33:09 2018 +0000
@@ -1,27 +1,36 @@
 #ifndef GYRO_H
 #define GYRO_H
 
+#include <iostream>
+#include <vector>
+#include <string>
+#include <sstream>
+using namespace std;
+#include "typedef.h"
+
 class Gyro {
     /*
      * Varialbles
      */
+    private:
 
-public:
-    /*
-     * Constructor
-     */
-    Gyro();
-    
+    float   accZ;
+    float   gyroZ;
+    float   yaw;
+    float   yaw_ref;
     /*
-     * Destructor.
+     * functions
      */
+    std::vector<std::string> split(const std::string &str, char sep);
+    void PushBuf(UCHAR rxChar);
+    void uartRxIntHndler46Axis();
+public:
+    Gyro();
     virtual ~Gyro();
-    
-    float GetAngularRate();//
-    float GetAccel();
-    
-    float GetAngle();
-    void SetYawRef();
+    float   GetAngularRate();
+    float   GetAccel();
+    float   GetAngle();
+    void    SetYawRef();
     
 };