Skip to content

Commit

Permalink
adding ground pickup button to driver b
Browse files Browse the repository at this point in the history
  • Loading branch information
audreypj committed Oct 4, 2023
1 parent 6213ef3 commit c97bc47
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,18 @@ private void configureButtonBindings() {
? IntakeSubsystem.Modes.INTAKE_LOW
: IntakeSubsystem.Modes.INTAKE));

jason
.leftBumper()
.onTrue(
new GroundPickupCommand(
intakeSubsystem,
outtakeSubsystem,
armSubsystem,
() ->
jason.getHID().getPOV() == 180
? IntakeSubsystem.Modes.INTAKE_LOW
: IntakeSubsystem.Modes.INTAKE));

jason
.povUp()
.onTrue(
Expand Down

0 comments on commit c97bc47

Please sign in to comment.