Dependents: Motorino_Lib xxx_Motorino_Lib
Diff: Kanal.cpp
- Revision:
- 4:be7221f0390c
- Parent:
- 0:9d4d08d4e918
--- a/Kanal.cpp Tue Sep 28 15:54:12 2021 +0000 +++ b/Kanal.cpp Wed Oct 27 16:34:36 2021 +0000 @@ -23,7 +23,7 @@ { w_alt+=dw; //printf("w alt %d zyklen %d\r\n",(int)w_alt,zyklen); - meinMotorino->servo(w_alt,nr); //pos 0..180° + meinMotorino->servo(w_alt,nr,start,end); //pos 0..180° ThisThread::sleep_for(25ms); } meinMotorino->servo(w_ziel,nr,start,end); //pos 0..180° @@ -47,6 +47,12 @@ } +void Kanal::grundstellung(float w) +{ + meinMotorino->servo(w,nr,start,end); //pos 0..180° + w_alt=w; +} + bool Kanal::isBusy() { //if (busy==false) Bewegung.terminate();