x

Dependencies:   Servo ServoArm mbed

Fork of PES_PIXY_Officiall by zhaw_st16b_pes2_10

Revision:
5:acb938f45b9c
Parent:
3:63da1d1fae15
--- a/Sources/Greifer.cpp	Fri May 26 08:24:59 2017 +0000
+++ b/Sources/Greifer.cpp	Fri May 26 13:43:19 2017 +0000
@@ -18,8 +18,8 @@
 }
 
 int Greifer::take(){
+    static int time = 0;
     this->greifer->position(-60.0f);
-    static int time = 0;
     if( time < 300 ){
         time++;
         return 0;
@@ -31,8 +31,8 @@
 }
 
 int Greifer::leave(){
+    static int time = 0;
     this->greifer->position(65.0f);
-    static int time = 0;
     if( time < 350 ){
         time++;
         return 0;