lineToXConstantHeading

fun lineToXConstantHeading(posX: Double, velConstraintOverride: VelConstraint? = null, accelConstraintOverride: AccelConstraint? = null): TrajectoryBuilder

Adds a line segment that goes to \(x\)-coordinate posX. 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. Equivalent to lineToX.