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(@NonNull powerSupplier: DoubleSupplier): Task
Move the servo with a supplier of power/delta.
Link copied to clipboard
open fun controlPosition(@NonNull 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 deltaUnclipped(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 setTo(position: Double): Task
Set a custom position that is clipped between the closed and open bounds.
Link copied to clipboard
open fun setToUnclipped(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