R1370 library only get gyro
Dependents: quadOmni_yanagi R1370 gyro_test wheel_test3 wheel_test3 ... more
Fork of R1307 by
R1370.h
- Committer:
- tknara
- Date:
- 2017-09-04
- Revision:
- 4:96f91d9e3bff
- Parent:
- 2:30d8a4f08cbd
File content as of revision 4:96f91d9e3bff:
#ifndef _R1370_H #define _R1370_H #include <mbed.h> class R1370 { public: R1370(PinName Tx,PinName Rx); int update(); float getAngle(); private: Serial serial; uint8_t data[15]; int16_t angle; float gyro; }; #endif /*_R1370_H*/