Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
Ani-8712 committed Sep 16, 2024
1 parent 53880c2 commit 10ce5d6
Showing 1 changed file with 34 additions and 30 deletions.
64 changes: 34 additions & 30 deletions src/main/java/team3647/frc2024/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -122,40 +122,40 @@ private void configureButtonBindings() {
coController.buttonA.onTrue(superstructure.setShootModeFeed());
coController.buttonB.onTrue(superstructure.setShootModeStationary());

mainController.rightTrigger.whileTrue(
autoDrive.setMode(() -> superstructure.getWantedShootingMode()));
mainController
.rightTrigger
.and(() -> !swerve.getIsAccel())
.onTrue(swerve.setAccelLimit(SwerveDriveConstants.shootingAccel))
.onFalse(swerve.setAccelLimit(SwerveDriveConstants.defaultAccel));
// mainController.rightTrigger.whileTrue(
// autoDrive.setMode(() -> superstructure.getWantedShootingMode()));
// mainController
// .rightTrigger
// .and(() -> !swerve.getIsAccel())
// .onTrue(swerve.setAccelLimit(SwerveDriveConstants.shootingAccel))
// .onFalse(swerve.setAccelLimit(SwerveDriveConstants.defaultAccel));
mainController
.leftTrigger
.and(goodToAmp)
.whileTrue(autoDrive.setMode(DriveMode.SHOOT_AT_AMP));
// mainController.leftTrigger.onFalse(autoCommands.pathToAmp(tracker.getColor()));
mainController
.rightTrigger
.and(
() ->
(!superstructure.getIsIntaking()
&& autoDrive.getMode() != DriveMode.CLEAN))
.whileTrue(superstructure.shoot())
.onFalse(
superstructure
.stowFromShoot()
.andThen(superstructure.ejectPiece())
.unless(mainController.buttonY));
// mainController
// .rightTrigger
// .and(
// () ->
// (!superstructure.getIsIntaking()
// && autoDrive.getMode() != DriveMode.CLEAN))
// .whileTrue(superstructure.shoot())
// .onFalse(
// superstructure
// .stowFromShoot()
// .andThen(superstructure.ejectPiece())
// .unless(mainController.buttonY));

mainController
.rightTrigger
.and(() -> (autoDrive.getMode() == DriveMode.CLEAN))
.whileTrue(superstructure.cleanShoot())
.onFalse(
superstructure
.stowFromShoot()
.andThen(superstructure.ejectPiece())
.unless(mainController.buttonY));
// mainController
// .rightTrigger
// .and(() -> (autoDrive.getMode() == DriveMode.CLEAN))
// .whileTrue(superstructure.cleanShoot())
// .onFalse(
// superstructure
// .stowFromShoot()
// .andThen(superstructure.ejectPiece())
// .unless(mainController.buttonY));
// coController
// .buttonX
// .whileTrue(autoCommands.pathToTrapTest())
Expand All @@ -180,8 +180,8 @@ private void configureButtonBindings() {
.stowFromAmpShoot()
.andThen(superstructure.ejectPiece())
.unless(mainController.buttonY));
mainController.rightTrigger.onFalse(
Commands.sequence(Commands.waitSeconds(0.6), autoDrive.setMode(DriveMode.NONE)));
// mainController.rightTrigger.onFalse(
// Commands.sequence(Commands.waitSeconds(0.6), autoDrive.setMode(DriveMode.NONE)));
mainController
.leftTrigger
.and(goodToAmp)
Expand Down Expand Up @@ -247,6 +247,10 @@ private void configureButtonBindings() {
climbing.onTrue(superstructure.setIsClimbing());
climbing.onFalse(superstructure.setIsNotClimbing());

mainController.rightTrigger
.onTrue(autoDrive.updateWhelRadius());


// characterization

// swerve
Expand Down

0 comments on commit 10ce5d6

Please sign in to comment.