PES 2 - Gruppe 1 / Mbed 2 deprecated Robocode_Random

Dependencies:   mbed

Fork of Robocode by PES 2 - Gruppe 1

Files at this revision

API Documentation at this revision

Comitter:
aeschsim
Date:
Wed May 03 09:16:03 2017 +0000
Parent:
100:1bef91db2175
Child:
103:bfc4403527e4
Commit message:
optimized grabbing functions;

Changed in this revision

source/Grabbing.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/source/Grabbing.cpp	Wed May 03 08:59:48 2017 +0000
+++ b/source/Grabbing.cpp	Wed May 03 09:16:03 2017 +0000
@@ -50,7 +50,7 @@
             break;
         case 7:
             if(arm_position_release()) {
-                wait(0.15f);
+                wait(0.5f);
                 open_grabber();
                 grabbing_state = 10;
             }
@@ -101,7 +101,7 @@
 {
     if( init2 == true) {
         set_servo_position(4, servo4max);
-        wait_ms(50);
+        wait_ms(300);
         i = servo6max;
         init2 = false;
     } else {