vf
Dependencies: Servo ServoArm mbed
Fork of PES_Official by
Diff: Sources/Greifer.cpp
- Revision:
- 17:4e1be70bdedb
- Parent:
- 15:915f8839fe48
diff -r 915f8839fe48 -r 4e1be70bdedb Sources/Greifer.cpp --- a/Sources/Greifer.cpp Thu May 11 18:57:45 2017 +0000 +++ b/Sources/Greifer.cpp Thu May 18 14:27:09 2017 +0000 @@ -19,14 +19,14 @@ void Greifer::init(Servo* greifer) { this->greifer = greifer; - greifer->calibrate(0.0017f, 180.0f); - greifer->position(60.0f); + greifer->calibrate(0.001f, 90.0f); + greifer->position(65.0f); } int Greifer::take() { - this->greifer->position(-155.0f); + this->greifer->position(-70.0f); static int time = 0; if( time < 10 ){ time++; @@ -40,7 +40,7 @@ int Greifer::leave() { - this->greifer->position(60.0f); + this->greifer->position(65.0f); static int time = 0; if( time < 10 ){ time++;