addTask

fun addTask(@NotNull newTask: Task, ack: Boolean)

Can be called to add custom Tasks in a robot's autonomous

Parameters

newTask

task to add to the run queue

ack

suppress the warning that a task was added manually before onReady


fun addTask(@NotNull newTask: Task)

Can be called to add custom Tasks in a robot's autonomous

Parameters

newTask

task to add to the run queue


fun addTask(@NotNull runnable: Runnable)

Implicitly construct a new RunTask and add it to the run queue

Parameters

runnable

the code to add to the run queue to run once


fun addTask(@NotNull runnable: Runnable, name: String)

Implicitly construct a new RunTask and add it to the run queue with a custom name

Parameters

runnable

the code to add to the run queue to run once

name

the name of the task