(多分)全部+フライトピン+新しい加速度

Dependencies:   mbed

Revision:
4:8b52fd631b32
Parent:
3:c1e0db4832b7
Child:
6:574d9a6253c7
Child:
7:1c1b782263cf
--- a/main.cpp	Fri Oct 19 04:48:30 2018 +0000
+++ b/main.cpp	Fri Oct 19 05:22:35 2018 +0000
@@ -72,6 +72,8 @@
                                     //0になった瞬間はこれを総距離に加えるというスイッチの役割をする。
         float rightrun;                  //変数runをフロートで型づけする
         float leftrun2;
+        rightrun=0.0;
+        leftrun2=0.0;
 
         while(1)
     {       
@@ -222,6 +224,10 @@
             printf("mortor stop\r\n");
         }
    }
+   
+            motor1.stop(0);
+            motor2.stop(0);
+   
 }