Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Servo ServoArm mbed
Fork of PES_Official by
Diff: Sources/Leiste.cpp
- 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;
}
