Tasks

open inner class Tasks

Tasks for Actuator, access with tasks.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun control(@NonNull powerSupplier: DoubleSupplier): Task
Controls the actuator with a continuous supplier of power.
Link copied to clipboard
open fun run(power: Double): Task
Continuously commands the actuator to control with this power value.
Link copied to clipboard
open fun runFor(@NonNull time: Measure<Time>, pwr: Double): Task
Run the actuator for a certain amount of time.
Link copied to clipboard
open fun setPower(pwr: Double): Task
Instantly set the power of the actuator.