turnTo

fun turnTo(heading: Rotation2d): TaskBuilder

Turn the robot to the heading, specified as a Rotation2d in radians.


fun turnTo(heading: Double, unit: Angle = Radians): TaskBuilder

Turn the robot to the heading in unit.