Skip to content

Commit

Permalink
made small important change
Browse files Browse the repository at this point in the history
  • Loading branch information
mmilunicmobile committed Feb 22, 2025
1 parent a03b89c commit 8c1a6a0
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -563,19 +563,25 @@ private void configureBindings() {
private void bindPlaceSeq(Trigger button, Position prep, Position end, double timeout) {
(button)
.onTrue(
stateManager
.moveToPosition(prep)
.until(AUTO_DRIVER_TRIGGER)
.andThen(stateManager.moveToPosition(end)));
// .alongWith(
// Commands.waitSeconds(timeout)
// .andThen(
// gripperSubsystem
// .ejectSpinCoral()))
// .until(AUTO_DRIVER_TRIGGER.negate())))
// .repeatedly()
// .beforeStarting(() -> normalRelease.setPressed(false))
// .finallyDo(() -> normalRelease.setPressed(true)));
(stateManager
.moveToPosition(prep)
.until(AUTO_DRIVER_TRIGGER)
.andThen(
stateManager
.moveToPosition(end)
// .alongWith(
//
// Commands.waitSeconds(timeout)
//
// .andThen(
//
// gripperSubsystem
//
// .ejectSpinCoral()))
.until(AUTO_DRIVER_TRIGGER.negate())))
.repeatedly()
.beforeStarting(() -> normalRelease.setPressed(false))
.finallyDo(() -> normalRelease.setPressed(true)));
}

private double deadband(double value, double deadband) {
Expand Down

0 comments on commit 8c1a6a0

Please sign in to comment.