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:
- 93:837a13760026
- Parent:
- 87:df8c869a5a52
- Child:
- 96:8da1c57296ff
--- a/source/StartUp.cpp Tue May 02 09:55:55 2017 +0000
+++ b/source/StartUp.cpp Tue May 02 13:25:56 2017 +0000
@@ -19,7 +19,7 @@
{
if(get_user() == false && stb2) {
- return 103;
+ return 103;
} else {
stb2 = true;
wait_ms(100);
@@ -35,16 +35,19 @@
}
-int inital_arm_positioning(){
+int inital_arm_positioning()
+{
open_grabber();
- arm_position_release();
- return 17;
+ if(arm_position_release()) {
+ return 17;
}
+ return 16;
+}
int initial_turn()
{
-
+
if(stb3 == false) {
stb3 = true;
printf("initial turn...\r\n");
