goTo

open fun goTo(@NonNull limitSwitch: TouchSensor): Task

Set the position of the actuator based on a mapped limit switch. This task will run the actuator to the position mapped by the limit switch, and has a condition to stop the actuator if the limit switch is pressed.

Return

a task to set the position

Parameters

limitSwitch

the position to set based on the limit switch, MUST be mapped by the actuator


open fun goTo(targetPosition: Int): Task

Set the position of the actuator.

Informally known as the Doinky-Rubber-Bandy Task

Return

a task to set the position

Parameters

targetPosition

the position to set