ジャイロ

Dependents:   00_yotsuba 103_JY901_practice 200_yotsuba_21 200_yotuba_21_uiChange

Revision:
6:79d045ea3542
Parent:
5:2397765e5b08
diff -r 2397765e5b08 -r 79d045ea3542 jy901.cpp
--- a/jy901.cpp	Fri Jan 08 10:17:46 2021 +0000
+++ b/jy901.cpp	Sat Jan 30 10:50:05 2021 +0000
@@ -41,18 +41,18 @@
     write(IICADDR,calibrationRegistar,3,false);
 }
 
-void JY901::calibrateAll(int time)
+void JY901::calibrateAll(int time_ms)
 {
     calibrateGyroAccel();
-    ThisThread::sleep_for(time);
+    thread_sleep_for(time_ms);
     calibrateMagnetic();
-    ThisThread::sleep_for(time);
+    thread_sleep_for(time_ms);
     calibrateHeight();
-    ThisThread::sleep_for(time);
+    thread_sleep_for(time_ms);
     endCalibrate();
-    ThisThread::sleep_for(time);
+    thread_sleep_for(time_ms);
     algorithmtrasition();
-    ThisThread::sleep_for(time);
+    thread_sleep_for(time_ms);
     yawcalibrate();
     
 }