teamALI / Mbed 2 deprecated HB2018

Dependencies:   mbed FreeRTOS

Gyro.h

Committer:
takeru0x1103
Date:
2018-11-27
Revision:
9:557628b373ea
Parent:
8:1ca49cb18290
Child:
14:76a56d517103

File content as of revision 9:557628b373ea:

#ifndef GYRO_H
#define GYRO_H

#include <iostream>
#include <vector>
#include <string>
#include <sstream>
using namespace std;
#include "typedef.h"

class Gyro {
    /*
     * Varialbles
     */
    private:

    float   accZ;
    float   gyroZ;
    float   yaw;
    float   yaw_ref;
    /*
     * 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();
    
};

#endif /* GYRO_H */