From 5fbd686902becfac9c99af669a21ae61aa95a311 Mon Sep 17 00:00:00 2001 From: Ernie3 Date: Fri, 1 Mar 2024 17:33:11 -0500 Subject: [PATCH] small intakeNoteSetpoint fix --- src/main/java/frc/robot/RobotContainer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index dd4ebe9..f66045b 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -200,7 +200,7 @@ private void configureOperatorStickBindings() { retractIntake.onTrue(new SetIntakeState(IntakeState.kUp)); Trigger intakeNoteSetpoint = new Trigger(() -> operatorStick.intakeNoteSetpoint() && RobotContainer.intake.isIntakeDown()); - intakeNoteSetpoint.onTrue(new SetShooterState(ShooterState.kIntake).andThen(new SetArmState(ArmState.kIntake))); + intakeNoteSetpoint.onTrue(new SetShooterState(ShooterState.kIntake).alongWith(new SetArmState(ArmState.kIntake))); Trigger ampSetpoint = new Trigger(operatorStick::ampSetpoint); ampSetpoint.onTrue(new SetArmState(ArmState.kAmp).alongWith(new SetShooterState(ShooterState.kAmp)));