Skip to content

Commit

Permalink
restructured nested command (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob1010-h authored Jan 23, 2024
2 parents 0672aa1 + bd47c6d commit 0d6dc90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/frc/robot/commands/ShooterCalc.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ public Command prepareFireMovingCommand(BooleanSupplier shootAtSpeaker, Swerve s
return Commands.runOnce(() -> toggleAiming());
}
return Commands.runOnce(() -> toggleAiming())
.andThen(prepareFireCommand(shootAtSpeaker, swerve.getPose()))
.repeatedly()
.until(() -> !aiming.getAsBoolean());
.andThen(prepareFireCommand(shootAtSpeaker, swerve.getPose())
.repeatedly()
.until(() -> !aiming.getAsBoolean()));
}

/**
Expand Down

0 comments on commit 0d6dc90

Please sign in to comment.