Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jwbonner committed Apr 13, 2024
1 parent aa2fcee commit 1138915
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -400,11 +400,11 @@ public Command davisCAAuto() {
// Set up all choices
Map<AutoQuestionResponse, Command> choices = new HashMap<>();
for (var firstCenterline : centerlineChoices) {
final int firstCenterlineIndex = spiky_calculateCenterlineIndex(firstCenterline);
final int firstCenterlineIndex = 0;
Map<AutoQuestionResponse, Command> secondCenterlineChoices = new HashMap<>();

for (var secondCenterline : centerlineChoices) {
final int secondCenterlineIndex = spiky_calculateCenterlineIndex(secondCenterline);
final int secondCenterlineIndex = 0;
// Get trajectories
HolonomicTrajectory preloadToFirstCenterline =
new HolonomicTrajectory("CA_startToCenterline" + firstCenterlineIndex);
Expand Down Expand Up @@ -470,8 +470,7 @@ public Command CA_fullCommand(
aim(drive), superstructure.aimWithCompensation(0)))),

// Intake second centerline
intake(superstructure, rollers)
.raceWith(waitUntilXCrossed(stageAimX, false)),
intake(rollers).raceWith(waitUntilXCrossed(stageAimX, false)),

// Sequence aiming, intaking and shooting
Commands.sequence(
Expand Down

0 comments on commit 1138915

Please sign in to comment.