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
Fork of Robocode by
Diff: source/StartUp.cpp
- Revision:
- 71:ddf4eb5c3081
- Parent:
- 69:1fdcef6a7577
- Child:
- 79:92b9d083322d
diff -r 922cbbfebf02 -r ddf4eb5c3081 source/StartUp.cpp
--- a/source/StartUp.cpp Thu Apr 20 07:36:50 2017 +0000
+++ b/source/StartUp.cpp Thu Apr 20 11:37:24 2017 +0000
@@ -4,7 +4,7 @@
bool stb2 = false;
bool stb3 = false;
-int idel()
+int idle()
{
if(get_user() == false && stb) {
@@ -15,11 +15,11 @@
}
}
-int idel2()
+int idle2()
{
if(get_user() == false && stb2) {
- return 52; // button pressed, 52 for grab test loop
+ return 25;
} else {
stb2 = true;
wait_ms(100);
@@ -35,11 +35,11 @@
}
-int inital_positioning()
-{
- printf("positioning...\r\n");
+int inital_arm_positioning(){
+ open_grabber();
+ arm_position_release();
return 11;
-}
+ }
int initial_turn()
@@ -56,5 +56,5 @@
return 35;
}
}
- return 27;
+ return 28;
}
