PES 2 - Gruppe 1 / Mbed 2 deprecated Robocode_Random

Dependencies:   mbed

Fork of Robocode by PES 2 - Gruppe 1

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");