角度調整用のプログラムです。 (モータードライバー+磁気センサー)

Dependencies:   ATP3012 mbed a HMC US015_2 getGPS

Revision:
2:83023bafb526
Parent:
1:f70beec382b6
--- a/main.cpp	Fri Dec 03 08:22:57 2021 +0000
+++ b/main.cpp	Tue Dec 14 07:13:21 2021 +0000
@@ -5,6 +5,20 @@
 int main() {
     double angle = 0;
     
+
+  
+    Move('2', 0.5);
+    wait(20);
+    Move('2', 0.3);
+    wait(10);
+    Move('2', 0.18);
+    wait(10);
+    Move('1', 0);
+    wait(10);
+    
+    
+    
+    
     Calibration();
 
     compass.setOpMode(HMC6352_CONTINUOUS, 1, 20);
@@ -26,6 +40,7 @@
                 compass.setOpMode(HMC6352_CONTINUOUS, 1, 20);
                 angle = compass.sample() / 10;
                 xbee.printf("%f\r\n", angle);
+                speak();
             }
         }
 }
\ No newline at end of file