unfinished

Dependents:   WRS_mechanamu_test WRS2019_master mbed_2018 mbed_2019_rx3 ... more

Revision:
1:6bcbd18a719a
Parent:
0:6ff4cad60b67
Child:
2:5af50b300137
--- a/JY901.cpp	Sun Sep 18 05:42:49 2016 +0000
+++ b/JY901.cpp	Sun Feb 04 13:41:04 2018 +0000
@@ -4,7 +4,7 @@
 {
 }
 
-void JY901::Calibrate_Gyro_Accel()
+void JY901::calibrateGyroAccel()
 {
     start();
     write(IICADDR);
@@ -14,7 +14,7 @@
     stop();
 }
 
-void JY901::CalibrateMagnetic()
+void JY901::calibrateMagnetic()
 {
     start();
     write(IICADDR);
@@ -24,7 +24,7 @@
     stop();
 }
 
-void JY901::CalibrateHeight()
+void JY901::calibrateHeight()
 {
     start();
     write(IICADDR);
@@ -34,7 +34,7 @@
     stop();
 }
 
-void JY901::EndCalibrate()
+void JY901::endCalibrate()
 {
     start();
     write(IICADDR);
@@ -44,15 +44,13 @@
     stop();   
 }
 
-void JY901::CalibrateAll(int time)
+void JY901::calibrateAll(int time_ms)
 {
-    Calibrate_Gyro_Accel();
-    wait_ms(time);
-    CalibrateMagnetic();
-    wait_ms(time);
-    CalibrateHeight();
-    wait_ms(time);
-    EndCalibrate();
+    calibrateGyroAccel();
+    calibrateMagnetic();
+    calibrateHeight();
+    wait_ms(time_ms);
+    endCalibrate();
 }
 
 int JY901::getYear()