R1370 library only get gyro

Dependents:   quadOmni_yanagi R1370 gyro_test wheel_test3 wheel_test3 ... more

Fork of R1307 by Wataru Nakata

Revision:
1:7d164124328b
Child:
2:30d8a4f08cbd
diff -r 1356771603cf -r 7d164124328b R1370.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/R1370.h	Sat Sep 02 10:02:27 2017 +0000
@@ -0,0 +1,17 @@
+#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*/
\ No newline at end of file