19 #include "LogConfiguration.h" 40 Hoist(
int hoistServoPin,
int hoistServoDelay,
int posMax,
int posMin);
68 DBFUNCCALLln(
"Hoist::attach()");
77 DBFUNCCALLln(
"Hoist::detach()");
void detach()
detach servo from servopin
void init()
Initialise the Hoist in the low position.
Provides the basic functions to control the Hoist.
bool lower()
Lower the Hoist 1° per servodelay/call until it's at positionMin.
unsigned long currentMillis
will store current time for non blocking delay
int servoDelay
delay in ms between raise/lower per 1 degree. This sets the servospeed
int positionMin
minimal possible position (Hardware-Restriction)
int positionMax
maximal possible position (Hardware-Restriction)
int position
actual servo-position
Servo hoistServo
Instance of servo object.
void attach()
attache servo to servopin
unsigned long previousMillis
will store last time called for non blocking delay