Skip to content

Commit

Permalink
[#29] - uncommented chase pieces
Browse files Browse the repository at this point in the history
  • Loading branch information
HeeistHo committed Mar 9, 2024
1 parent 180a62e commit a03c874
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,12 @@ protected void configureButtonBindings() {
.onTrue(drivetrain.runOnce(drivetrain::seedFieldRelative));

// makes the robot chase pieces
// new Trigger(driver::getRightBumper)
// .whileTrue(new ChasePieces(drivetrain, collector, indexer, pivot, flywheel, limelights)
// .deadlineWith(leds.enableState(LED_STATES.CHASING)));

new Trigger(driver::getRightBumper)
.whileTrue(new PathFindToAuton(PathPlannerPath.fromPathFile("PathFind-AMP"), drivetrain, driver));
.whileTrue(new ChasePieces(drivetrain, collector, indexer, pivot, flywheel, limelights)
.deadlineWith(leds.enableState(LED_STATES.CHASING)));

// new Trigger(driver::getRightBumper)
// .whileTrue(new PathFindToAuton(PathPlannerPath.fromPathFile("PathFind-AMP"), drivetrain, driver));

// parks the robot
// new Trigger(driver::getXButton).whileTrue(new InstantCommand(() ->
Expand Down

0 comments on commit a03c874

Please sign in to comment.