add At Index
Insert a task at a specific index in the queue. This is useful for adding tasks that should be run at a specific point in the autonomous sequence. Note that this function immediately produces side effects, and subsequent calls will not be able to insert tasks at the same index due to the shifting of tasks.
Return
the added task
Parameters
the index to insert the task at, starting from 0
the task to add to the run queue
the inherited task type
Insert an implicit RunTask at a specific index in the queue.
Return
the added RunTask
Parameters
the index to insert the task at, starting from 0
the code to add to the run queue to run once
Insert an implicit RunTask at a specific index in the queue.
Return
the added RunTask
Parameters
the index to insert the task at, starting from 0
the name of the task
the code to add to the run queue to run once