Skip to content

Commit

Permalink
took autoPickup namedCommand out of the wrong condition
Browse files Browse the repository at this point in the history
  • Loading branch information
trixydevs committed Jan 31, 2024
1 parent 31fbfc3 commit 0f05c8f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -292,13 +292,14 @@ private void configureDriveTrain() {

private void registerNamedCommands() {
NamedCommands.registerCommand("stopDrivetrain", new InstantCommand(driveTrain::stop, driveTrain));
NamedCommands.registerCommand("autoPickup", new CollectNote(driveTrain, limelight));

if(shooterExists) {NamedCommands.registerCommand("shooterOn", new InstantCommand(()->shooter.shootThing(1), shooter));

NamedCommands.registerCommand("stopFeedingShooter", new InstantCommand(indexer::off, indexer));}
if(indexerExists) {NamedCommands.registerCommand("feedShooter", new InstantCommand(indexer::on, indexer));}
if(intakeExists) {NamedCommands.registerCommand("autoPickup", new CollectNote(driveTrain, limelight));
NamedCommands.registerCommand("intakeOn", new InstantCommand(()-> intake.intakeYes(1)));}
if(intakeExists) {
NamedCommands.registerCommand("intakeOn", new InstantCommand(()-> intake.intakeYes(1)));
}
}

public void teleopPeriodic() {
Expand Down

0 comments on commit 0f05c8f

Please sign in to comment.