Skip to content

Commit

Permalink
Adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
jwbonner committed Apr 13, 2024
1 parent eba772b commit 7e1f3ec
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -737,13 +737,13 @@ public Command davisInspirationalAuto() {
Map.of(
AutoQuestionResponse.SOURCE,
Commands.waitSeconds(
14.6 - leaveFromSource.getDuration()),
13.5 - leaveFromSource.getDuration()),
AutoQuestionResponse.CENTER,
Commands.waitSeconds(
14.6 - leaveFromCenter.getDuration()),
13.5 - leaveFromCenter.getDuration()),
AutoQuestionResponse.AMP,
Commands.waitSeconds(
14.6 - leaveFromAmp.getDuration())),
13.5 - leaveFromAmp.getDuration())),
() -> responses.get().get(0))),
() -> responses.get().get(2))
.andThen(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -734,24 +734,27 @@ public class DriveTrajectories {
PathSegment.newBuilder()
.addPoseWaypoint(startingSourceSubwoofer)
.addTranslationWaypoint(
startingSourceSubwoofer.getTranslation().plus(new Translation2d(0.75, -3)))
.addTranslationWaypoint(
startingSourceSubwoofer.getTranslation().plus(new Translation2d(2.0, -3.75)))
FieldConstants.Stage.podiumLeg
.getTranslation()
.plus(new Translation2d(0.0, -2.0)))
.build()));
paths.put(
"inspirational_leaveFromCenter",
List.of(
PathSegment.newBuilder()
.addPoseWaypoint(startingCenter)
.addTranslationWaypoint(
startingCenter.getTranslation().plus(new Translation2d(1.0, 0.0)))
FieldConstants.StagingLocations.spikeTranslations[1].plus(
new Translation2d(1.0, 0.0)))
.build()));
paths.put(
"inspirational_leaveFromAmp",
List.of(
PathSegment.newBuilder()
.addPoseWaypoint(startingAmpSubwoofer)
.addPoseWaypoint(startingAmpWall.transformBy(GeomUtil.toTransform2d(-1.0, 0.0)))
.addTranslationWaypoint(
FieldConstants.StagingLocations.spikeTranslations[2].plus(
new Translation2d(1.0, 0.0)))
.build()));
}

Expand Down

0 comments on commit 7e1f3ec

Please sign in to comment.