runRepeatedly

open fun runRepeatedly(registeredIndex: Int)

Run a single robot task iteration, auto-resetting the task if it finishes. This is the same as executing a task wrapped in a RepeatTask, useful for tasks that are "one and done".

Parameters

registeredIndex

the existing index of the task as registered in order from register parameters order.


open fun runRepeatedly(task: Task)

Run a single robot task iteration, auto-resetting the task if it finishes. This task must be registered prior through register. Do not instantiate new tasks here. This is the same as executing a task wrapped in a RepeatTask, useful for tasks that are "one and done".

Parameters

task

the registered instance of the task that will be stored and subsequently run with additional calls to this method