R1370 library only get gyro

Dependents:   quadOmni_yanagi R1370 gyro_test wheel_test3 wheel_test3 ... more

Fork of R1307 by Wataru Nakata

Files at this revision

API Documentation at this revision

Comitter:
tknara
Date:
Mon Sep 04 05:32:58 2017 +0000
Parent:
2:30d8a4f08cbd
Commit message:
???????

Changed in this revision

R1370.cpp Show annotated file Show diff for this revision Revisions of this file
R1370.h Show annotated file Show diff for this revision Revisions of this file
diff -r 30d8a4f08cbd -r 96f91d9e3bff R1370.cpp
--- a/R1370.cpp	Mon Sep 04 02:58:59 2017 +0000
+++ b/R1370.cpp	Mon Sep 04 05:32:58 2017 +0000
@@ -4,7 +4,7 @@
 {
     R1370::serial.baud(115200);
 }
-int R1370::reciveState()
+int R1370::update()
 {
     int i;
     if((data[0]=serial.getc())==0xAA){
diff -r 30d8a4f08cbd -r 96f91d9e3bff R1370.h
--- a/R1370.h	Mon Sep 04 02:58:59 2017 +0000
+++ b/R1370.h	Mon Sep 04 05:32:58 2017 +0000
@@ -6,7 +6,7 @@
 {
 public:
     R1370(PinName Tx,PinName Rx);
-    int reciveState();
+    int update();
     float getAngle();
 private:
     Serial serial;