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-04
Revision:
2:30d8a4f08cbd
Parent:
1:7d164124328b
Child:
4:96f91d9e3bff

File content as of revision 2:30d8a4f08cbd:

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

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