addTask

fun addTask(setUnmappedEndPoseRef: Cell<Pose2d>? = null): TaskBuilder

Build the current trajectory and add it to the current AutonomousBunyipsOpMode task queue with the settings defined in this builder. Optionally sets a passed setUnmappedEndPoseRef to the last unmapped spliced pose.

This method will throw an UninitializedPropertyAccessException if the current BunyipsOpMode is not an AutonomousBunyipsOpMode or if the AutonomousBunyipsOpMode is not running.

Returns the result of fresh to allow chaining of future tasks.