a

Dependencies:   Servo ServoArm mbed

Fork of PES_Official-TestF by zhaw_st16b_pes2_10

Revision:
15:915f8839fe48
Parent:
14:b61fbd13a7c9
Child:
16:f157e5ccd7d3
--- a/Sources/Leiste.cpp	Wed May 10 19:53:08 2017 +0000
+++ b/Sources/Leiste.cpp	Thu May 11 18:57:45 2017 +0000
@@ -11,7 +11,7 @@
 
 void Leiste::init(Servo* leiste){
     this->leiste = leiste;
-    this->leiste->calibrate(0.0015f, 180.0f);
+    this->leiste->calibrate(0.0025f, 180.0f);
     this->leiste->position(UP_POS);
 }
 
@@ -30,8 +30,8 @@
 
 int Leiste::DownToUp(){
     static float pos=DOWN_POS;
-    if(pos>UP_POS) {
-        pos-=3;
+    if(pos<UP_POS) {
+        pos+=3;
         this->leiste->position(pos);
         return 0;
     }