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.
Fork of Move by
Revision 27:4242d6187281, committed 2016-09-10
- Comitter:
- sakanakuuun
- Date:
- Sat Sep 10 17:41:32 2016 +0000
- Parent:
- 26:0584d68e8f30
- Child:
- 28:e4b81ad2e188
- Commit message:
- change turnrad(){wait(0.5)} -> {wait(0.2)}
Changed in this revision
| move.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/move.cpp Sat Sep 10 17:38:58 2016 +0000
+++ b/move.cpp Sat Sep 10 17:41:32 2016 +0000
@@ -105,9 +105,9 @@
}
hosei_turn(0, false, rad);
- wait(0.5);
+ wait(0.2);
hosei_turn(0, false, rad);
- wait(0.5);
+ wait(0.2);
green = 0;
}
@@ -129,9 +129,9 @@
}
hosei_turn(0, false, rad);
- wait(0.5);
+ wait(0.2);
hosei_turn(0, false, rad);
- wait(0.5);
+ wait(0.2);
green = 0;
}
@@ -194,8 +194,6 @@
if(*d_length < 0) //x,y減少方向なら、*d_length<0
direction *= -1;
- pc2.printf("direction:%d", direction);
-
switch(direction) {
case X_PLUS:
ptheta = 0;
@@ -275,8 +273,6 @@
length = sqrt(pow((double)(x - coordinateX()), 2) + pow((double)(y - coordinateY()), 2));
- pc2.printf("length:%f", length);
-
if(length == 0) {
red=1;
return;
