From 0f05c8f525b24116033c76d21140058b3a5522be Mon Sep 17 00:00:00 2001 From: Liam Sykes <78829557+trixydevs@users.noreply.github.com> Date: Tue, 30 Jan 2024 19:33:44 -0600 Subject: [PATCH] took autoPickup namedCommand out of the wrong condition --- src/main/java/frc/robot/RobotContainer.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index 6c215ba3..4ab5825f 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -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() {