調整中

Dependencies:   mbed HMC6352 US015 TB6612FNG2 getGPS ATP3011

Revision:
10:0433f48faf74
Child:
11:5c0237c3fb1e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Rotate/Rotate.cpp	Wed Oct 27 06:27:12 2021 +0000
@@ -0,0 +1,14 @@
+void ROttate(double angle) {
+    double time = angle; // てきとーなけいさん
+    if (angle > 0) {
+        MotorDriver('5', 1);
+        wait(time);
+        MotorDriver('1', 0);
+    } elif (angle < 0) {
+        MotorDriver('6', 1);
+        wait(time);
+        MotorDriver('1', 0);
+    }
+}
+            
+    
\ No newline at end of file