controlPosition

open fun controlPosition(@NonNull positionSupplier: DoubleSupplier): Task

Move the servo with a supplier of position. Should be a default task.

Return

a task to continually move the switch to the position supply

Parameters

positionSupplier

the position value supplier