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