Tasks

open inner class Tasks

Tasks for HoldableActuator, access with tasks.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun ceil(): Task
Send the actuator to the top limit, using the constants for homing.
Link copied to clipboard
open fun control(powerSupplier: DoubleSupplier): Task
Move the actuator with a supplier of power.
Link copied to clipboard
open fun delta(deltaPosition: Int): Task
Delta the position of the actuator.
Link copied to clipboard
open fun goTo(targetPosition: Int): Task
Set the position of the actuator.
Link copied to clipboard
open fun home(): Task
Home the actuator based on encoders against a hard stop or limit switch.
Link copied to clipboard
open fun runFor(time: Measure<Time>, p: Double): Task
Run the actuator for a certain amount of time.
Link copied to clipboard
open fun setPower(p: Double): Task
Set the power of the actuator.