From b52ab535278dd65f4a5bb32d8181026276dc0767 Mon Sep 17 00:00:00 2001 From: Xiaohan Date: Tue, 30 Jan 2024 17:15:25 -0600 Subject: [PATCH] round 2, changged robot container --- src/main/java/frc/robot/RobotContainer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index 30730083..bb061148 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -282,8 +282,8 @@ private void configureDriveTrain() { private void registerNamedCommands() { NamedCommands.registerCommand("stopDrivetrain", new InstantCommand(driveTrain::stop, driveTrain)); if(shooterExists) {NamedCommands.registerCommand("shooterOn", new InstantCommand(()->shooter.shootThing(1), shooter)); - NamedCommands.registerCommand("stopFeedingShooter", new InstantCommand(indexer::feederOff, indexer));} - if(indexerExists) {NamedCommands.registerCommand("feedShooter", new InstantCommand(()->indexer.feederFeed(0.5), indexer));} + 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, intake)); NamedCommands.registerCommand("intakeOn", new InstantCommand(()-> intake.intakeYes(1)));} }