addTask

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

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.