明石高専ロボ研 mbedライブラリ

Dependencies:   mbed

Dependents:   MDD_L432KC USB2RS485 pathtracking odometry ... more

Revision:
3:28c77df7c0b6
Parent:
0:ca84ed7518f5
Child:
4:39ef4d91dc34
--- a/gy521.hpp	Fri Jan 03 02:37:48 2020 +0000
+++ b/gy521.hpp	Mon Jan 06 11:06:26 2020 +0000
@@ -8,6 +8,9 @@
  *example
  *L432KC : SDA = PB_7 , SCL = PB_6
  *F446RE : SDA = PB_3 , SCL = PB_10
+ *ループ内で毎回
+ *<obj>.update()
+ *を呼び出してください。
  */
 //I2C i2c(SDA,SCL);
 //GY521 gyro(i2c);
@@ -17,7 +20,7 @@
     GY521(I2C &i2c,int bit = 2,int calibration = 1000,double user_reg = 1.0);
     double yaw;
     //double temp;
-    void updata();
+    void update();
     void reset(int user);
     void start(double start = 0){
         yaw = start;