Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,12 @@ public RobotContainer() {
autoChooser.addOption("Drive Simple FF Characterization",
DriveCommands.feedforwardCharacterization(drive)
);
configureButtonBindings();}

configureButtonBindings();



}

/*
autoChooser.addOption("Mid Climb",
Commands.sequence(
Expand Down Expand Up @@ -356,16 +356,16 @@ private void configureButtonBindings() {

//operator.y().whileTrue(transfer.runPercent(0.6)); //Transfer
operator.y().whileTrue(Commands.parallel(indexer.runPercent(0.8), transfer.runPercent(-0.6))); //indexer and spindexer up
operator.x().whileTrue(Commands.parallel(transfer.runPercent(-0.6), intake.rollersIn())); //spindex and Intake
operator.x().whileTrue(Commands.parallel(transfer.runPercent(-0.6), intake.rollersOut())); //spindex and Intake
operator.a().whileTrue(Commands.parallel(transfer.runPercent(0.6), indexer.runPercent(-0.6))); //Transfer and indexer out
operator.b().whileTrue(intake.rollersOut()); //outtake
operator.b().whileTrue(intake.rollersIn()); //outtake

//operator.povUp().onTrue(hubLock); // reapplys hublock if switched off
//operator.povUp().onTrue(Commands.runOnce(() -> turret.setDefaultCommand(hubLock())));
//operator.povUp().whileTrue
operator.povUp().whileTrue(Commands.parallel(indexer.runPercent(0.8),transfer.runPercent(0.8),intake.rollersIn()));
operator.povUp().whileTrue(Commands.parallel(indexer.runPercent(0.8),transfer.runPercent(-0.8),intake.rollersOut()));
//intake and transfer in, indexer up
operator.povDown().whileTrue(Commands.parallel(indexer.runPercent(0.8),transfer.runPercent(-0.8),intake.rollersOut()));
operator.povDown().whileTrue(Commands.parallel(indexer.runPercent(-0.8),transfer.runPercent(0.8),intake.rollersIn()));
//intake and transfer out, indexer down
operator.povRight().onTrue(intake.retractIn());//intake comes in
operator.povLeft().onTrue(intake.deployOut());//intake goes out
Expand Down