Skip to content

Commit

Permalink
Toggle compressor start+rightbumper
Browse files Browse the repository at this point in the history
  • Loading branch information
cyblazer committed Mar 22, 2024
1 parent e91401d commit 4effaf8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

import edu.wpi.first.math.MathUtil;
import edu.wpi.first.wpilibj.DriverStation;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.XboxController;
import edu.wpi.first.wpilibj.XboxController.Button;
import edu.wpi.first.wpilibj.smartdashboard.SendableChooser;
Expand Down Expand Up @@ -229,6 +230,11 @@ private void configureBindings() {
new Trigger(() -> {
return m_operatorController.getLeftBumper() && m_operatorController.getStartButton();
}).onTrue(new InstantCommand(() -> m_intakeSubsystem.toggleDistanceSensor()));

// Toggle Compressor, Operator Controller Right Bumper + Menu
new Trigger(() -> {
return m_operatorController.getRightBumper() && m_operatorController.getStartButton();
}).onTrue(new InstantCommand(() -> m_climberSubsystem.toggleCompressor()));
}

/**
Expand Down

0 comments on commit 4effaf8

Please sign in to comment.