lineToXSplineHeading
fun lineToXSplineHeading(posX: Double, heading: Rotation2d, velConstraintOverride: VelConstraint? = null, accelConstraintOverride: AccelConstraint? = null): TrajectoryActionBuilder
fun lineToXSplineHeading(posX: Double, heading: Double, velConstraintOverride: VelConstraint? = null, accelConstraintOverride: AccelConstraint? = null): TrajectoryActionBuilder
Adds a line segment that goes to x-coordinate posX, while changing heading from current to heading using spline interpolation. The robot will continue traveling in the direction it is currently in; if the robot is perpendicular to the x-axis, this throws an error.