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 EC PathFollowing-ver11 CruizCore_R1370P
Diff: main.cpp
- Revision:
- 1:86eae1cf26d2
- Parent:
- 0:f5992b0c6e00
- Child:
- 2:e04e6b5d6584
diff -r f5992b0c6e00 -r 86eae1cf26d2 main.cpp
--- a/main.cpp Fri Nov 16 23:21:38 2018 +0000
+++ b/main.cpp Fri Nov 16 23:32:58 2018 +0000
@@ -316,22 +316,22 @@
pc_command = pc.getc();
- if(pc_command == 'f') { //前進
+ if(pc_command == 'w') { //前進
m1+=500;
m2+=500;
m3-=500;
m4-=500;
- } else if(pc_command == 'b') { //後進
+ } else if(pc_command == 's') { //後進
m1-=500;
m2-=500;
m3+=500;
m4+=500;
- } else if(pc_command == 'r') { //右回り
+ } else if(pc_command == 'd') { //右回り
m1+=500;
m2+=500;
m3+=500;
m4+=500;
- } else if(pc_command == 'l') { //左回り
+ } else if(pc_command == 'a') { //左回り
m1-=500;
m2-=500;
m3-=500;