diff --git a/src/main/java/frc/robot/RobotContainer.kt b/src/main/java/frc/robot/RobotContainer.kt index e3459b6..190f9ff 100644 --- a/src/main/java/frc/robot/RobotContainer.kt +++ b/src/main/java/frc/robot/RobotContainer.kt @@ -109,10 +109,17 @@ object RobotContainer { Trigger { controller.leftTriggerAxis >= 0.5 } .onTrue( - Indexer.setSpeedCommand(-1.0) + SequentialCommandGroup( + Indexer.setSpeedCommand(-1.0), + BallIntake.runRollersCommand(-1.0), + ) ) .onFalse( - Indexer.setSpeedCommand(0.0) + SequentialCommandGroup( + Indexer.setSpeedCommand(0.0), + BallIntake.runRollersCommand(0.0), + SetIntakePosition(BallIntake.Position.Up.pose, BallIntake), + ) ) JoystickButton(controller, XboxController.Button.kLeftBumper.value)