Tobis Programm forked to not destroy your golden files

Dependencies:   mbed

Fork of Robocode by PES 2 - Gruppe 1

Revision:
84:435ec041fd0d
Parent:
78:d9138c6f82a8
Child:
93:837a13760026
--- a/source/Grabbing.cpp	Mon May 01 09:22:29 2017 +0000
+++ b/source/Grabbing.cpp	Mon May 01 10:07:06 2017 +0000
@@ -7,7 +7,7 @@
 
 #define servo4min   280 //unten
 #define servo4max   495 //oben
-#define servo6min   270 //oben
+#define servo6min   265 //oben
 #define servo6max   480 //unter
 #define servo8min   120 //offen
 #define servo8max   260 //zu
@@ -37,8 +37,10 @@
     
 int arm_position_release(){
     set_servo_position(4, servo4max);
-    wait_ms(400);
-    set_servo_position(6, servo6min);
+    wait_ms(50);
+    for (int i = servo6max; i>=servo6min; i = i-5) {
+        set_servo_position(6, i);
+    }
     return 55;  //open grabber
    }