Skip to content

Commit

Permalink
Added elevator reset command to copilot controller
Browse files Browse the repository at this point in the history
  • Loading branch information
hamburger73 committed Feb 7, 2025
1 parent 982fce0 commit 28c580b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ public void configureButtonBindings() {
copilotController.y().whileTrue(commandSequences.moveElevator(ElevatorPresets.SCOREL3))
.onFalse(commandSequences.score());

copilotController.back().onTrue(elevator.resetCmd());

driveController.rightBumper().whileTrue(drive.aimAtReefCenter());

}
Expand All @@ -158,7 +160,8 @@ public Command getAutoCommand() {
@Override
public void setDefaultCommands() {
elevator.setDefaultCommand(elevator.move(RobotUtils.deadbandAxis(.1, () -> -copilotController.getLeftY())));
deepClimb.setDefaultCommand(deepClimb.rotate(RobotUtils.deadbandAxis(0.1, () -> copilotController.getRightY())));
deepClimb
.setDefaultCommand(deepClimb.rotate(RobotUtils.deadbandAxis(0.1, () -> copilotController.getRightY())));
}

public DoubleUnaryOperator getScaler(double leftRange, double rightRange) {
Expand Down

0 comments on commit 28c580b

Please sign in to comment.