Skip to content

Commit

Permalink
Docs: Climber
Browse files Browse the repository at this point in the history
  • Loading branch information
ProgrammingSR committed Feb 13, 2024
1 parent e4c9700 commit 759c15f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@

package frc.robot;

import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.XboxController;
import edu.wpi.first.wpilibj.XboxController.Button;
import edu.wpi.first.wpilibj2.command.Command;
import edu.wpi.first.wpilibj2.command.Commands;
import edu.wpi.first.wpilibj2.command.InstantCommand;
import edu.wpi.first.wpilibj2.command.button.JoystickButton;
import frc.robot.climberSubSystem;

public class RobotContainer {
private final XboxController m_controller = new XboxController(0);
Expand All @@ -25,7 +23,8 @@ public RobotContainer() {
}

private void configureBindings() {

//When Y button is pressed, the climber will toggle up or down
//based on current position, it will be reversed
new JoystickButton(m_controller, Button.kY.value)
.onTrue(new InstantCommand(climberSubSystem::toggle));

Expand Down

0 comments on commit 759c15f

Please sign in to comment.