Skip to content

Commit

Permalink
yoav
Browse files Browse the repository at this point in the history
  • Loading branch information
greenblitz4590 committed Jun 19, 2024
1 parent b97d986 commit b6f8956
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ public static void razElevatorTest(Gamepad gamepad) {
public static void razWristTest(Gamepad gamepad) {
mainGamepad = new GamepadWrapper(gamepad);

mainGamepad.getGamepadButton(GamepadKeys.Button.B).whenPressed(WristCommands.moveToState(WristState.SCORE));
mainGamepad.getGamepadButton(GamepadKeys.Button.X).whenPressed(WristCommands.moveToState(WristState.INTAKE));
mainGamepad.getGamepadButton(GamepadKeys.Button.X).whenPressed(WristCommands.moveToState(WristState.IDLE));
mainGamepad.getGamepadButton(GamepadKeys.Button.DPAD_DOWN).whenPressed(WristCommands.moveToState(WristState.SCORE));
mainGamepad.getGamepadButton(GamepadKeys.Button.DPAD_UP).whenPressed(WristCommands.moveToState(WristState.INTAKE));
mainGamepad.getGamepadButton(GamepadKeys.Button.DPAD_RIGHT).whenPressed(WristCommands.moveToState(WristState.IDLE));
}

public static void razChassisTest(Gamepad gamepad) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public static Robot getInstance() {
private Wrist wrist;

private void initSubsystems(HardwareMap hardwareMap) {
if (currentState == null) {
// if (currentState == null) {
this.currentState = RobotState.DRIVE;

this.arm = new Arm(hardwareMap);
Expand All @@ -44,7 +44,7 @@ private void initSubsystems(HardwareMap hardwareMap) {
this.elevator = new Elevator(hardwareMap);
this.launcher = new Launcher(hardwareMap);
this.wrist = new Wrist(hardwareMap);
}
// }
}

public SequentialCommandGroup setState(RobotState robotState) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public void execute() {

@Override
public void configureBindings() {
Bindings.razElevatorTest(gamepad1);
Bindings.razElevatorTest(gamepad2);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public void execute() {

@Override
public void configureBindings() {
Bindings.razWristTest(gamepad1);
Bindings.razWristTest(gamepad2);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ class WristConstants {
protected static String SERVO_HARDWARE_ID = "wrist_gripper";
protected static double SCORE_POSITION = 1;
protected static double IDLE_POSITION = 1;
protected static double INTAKE_POSITION = 0.39;
protected static double INTAKE_POSITION = 0.3;

}

0 comments on commit b6f8956

Please sign in to comment.