R1370 library only get gyro

Dependents:   quadOmni_yanagi R1370 gyro_test wheel_test3 wheel_test3 ... more

Fork of R1307 by Wataru Nakata

R1370.h

Committer:
tknara
Date:
2017-09-02
Revision:
1:7d164124328b
Child:
2:30d8a4f08cbd

File content as of revision 1:7d164124328b:

#ifndef _R1370_H
#define _R1370_H
#include <mbed.h>

class R1370
{
public:
    R1370(PinName Tx,PinName Rx);
    int R1370State();
    float getAngle();
private:
    Serial serial;
    uint8_t data[15];
    int16_t angle;
    float gyro;
};
#endif /*_R1370_H*/