Skip to content
This repository has been archived by the owner on Jan 14, 2025. It is now read-only.

Commit

Permalink
feat: outtake the ball intake on LT press
Browse files Browse the repository at this point in the history
  • Loading branch information
doinkythederp committed Dec 16, 2023
1 parent a4a4a04 commit 9278e54
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/main/java/frc/robot/RobotContainer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ object RobotContainer {
setDefaultCommands()
DriverStation.silenceJoystickConnectionWarning(RobotBase.isSimulation())

LimelightHelpers.setCameraMode_Driver("limelight");
LimelightHelpers.setCameraMode_Driver("limelight")
LimelightHelpers.setLEDMode_ForceOff("limelight")
}

Expand Down Expand Up @@ -106,10 +106,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)
Expand Down

0 comments on commit 9278e54

Please sign in to comment.