Tasks

open inner class Tasks

Tasks for Switch, access with tasks.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun close(): Task
Close the switch.
Link copied to clipboard
open fun controlDelta(powerSupplier: DoubleSupplier): Task
Move the servo with a supplier of power/delta.
Link copied to clipboard
open fun controlPosition(positionSupplier: DoubleSupplier): Task
Move the servo with a supplier of position.
Link copied to clipboard
open fun delta(delta: Double): Task
Delta the current servo position.
Link copied to clipboard
open fun deltaClipped(delta: Double): Task
Delta the current servo position.
Link copied to clipboard
open fun open(): Task
Open the switch.
Link copied to clipboard
open fun setClipped(position: Double): Task
Set a custom position that is clipped between the closed and open bounds.
Link copied to clipboard
open fun setTo(position: Double): Task
Set a custom position that is not affected by the closed and open bounds.
Link copied to clipboard
open fun toggle(): Task
Toggle the switch