Skip to content

Commit

Permalink
made my path not get a DUI from the ref
Browse files Browse the repository at this point in the history
  • Loading branch information
TechnototesLaptop authored and kevinfrei committed Oct 13, 2024
1 parent 69f9817 commit 3188e90
Showing 1 changed file with 38 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,43 @@ public static class AutoConstants {
func
.apply(TEST1)
.splineToSplineHeading(TEST2, Math.PI - TEST2.getHeading())
.splineToSplineHeading(TEST3, Math.PI - TEST3.getHeading())
.splineToSplineHeading(TEST4, Math.PI - TEST4.getHeading())
.splineToSplineHeading(TEST5, Math.PI - TEST5.getHeading())
.splineToSplineHeading(TEST6, Math.PI - TEST6.getHeading())
.splineToSplineHeading(TEST6a, Math.PI - TEST6a.getHeading())
.build();
public static final Supplier<Trajectory> TEST2_TO_TEST2 = () ->
func
.apply(TEST2)
.lineToLinearHeading(TEST3)
.build();
public static final Supplier<Trajectory> TEST2_TO_TESTB = () ->
func
.apply(TEST3)
.lineToLinearHeading(TEST4)
.build();

public static final Supplier<Trajectory> TEST2_TO_TEST3 = () ->
public static final Supplier<Trajectory> TESTB_TO_TESTC = () ->
func
.apply(TEST6a)
.lineToLinearHeading(TEST6b)
.apply(TEST4)
.lineToLinearHeading(TEST5)
.build();
public static final Supplier<Trajectory> TEST3_TO_TEST4 = () ->
public static final Supplier<Trajectory> TESTC_TO_TESTD = () ->
func
.apply(TEST5)
.lineToLinearHeading(TEST6)
.build();
public static final Supplier<Trajectory> TESTD_TO_TESTE = () ->
func
.apply(TEST6)
.splineToSplineHeading(TEST6a, Math.PI - TEST6a.getHeading())
.build();
public static final Supplier<Trajectory> TEST2_TO_TEST3 = () ->
func
.apply(TEST6b)
.lineToLinearHeading(TEST7)
.apply(TEST6a)
.lineToLinearHeading(TEST6b)
.build();
public static final Supplier<Trajectory> TEST3_TO_TEST4 = () ->
func
.apply(TEST6b)
.lineToLinearHeading(TEST7)
.build();
public static final Supplier<Trajectory> TEST4_TO_TEST5 = () ->
func
.apply(TEST7)
Expand Down Expand Up @@ -97,9 +117,14 @@ private static TrajectorySequence getTestTrajectory(DriveShim drive) {
return drive
.trajectorySequenceBuilder(AutoConstants.TEST1)
.addTrajectory(AutoConstants.TEST1_TO_TEST2.get())
.addTrajectory(AutoConstants.TEST2_TO_TEST2.get())
.addTrajectory(AutoConstants.TEST2_TO_TESTB.get())
.addTrajectory(AutoConstants.TESTB_TO_TESTC.get())
.addTrajectory(AutoConstants.TESTC_TO_TESTD.get())
.addTrajectory(AutoConstants.TESTD_TO_TESTE.get())
.addTrajectory(AutoConstants.TEST2_TO_TEST3.get())
.addTrajectory(AutoConstants.TEST3_TO_TEST4.get())
.addTrajectory(AutoConstants.TEST4_TO_TEST5.get())
.build();
.addTrajectory(AutoConstants.TEST4_TO_TEST5.get())
.build();
}
}

0 comments on commit 3188e90

Please sign in to comment.