Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: main.cpp
- 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); + }