Skip to content

Commit

Permalink
I binded some the wrist to some buttons today!!! without keplers help…
Browse files Browse the repository at this point in the history
… 😒😒🤢🤢🤬🤬😡😡🥺🥺👿👿😈😈👹👹👺👺🐽🐽🐽🐽🐛
  • Loading branch information
TechnototesLaptop authored and kevinfrei committed Nov 16, 2024
1 parent 2fe8a98 commit 1fa6b93
Showing 1 changed file with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public class OperatorController {
public CommandButton armVertical;
public CommandButton armIncrement;
public CommandButton armDecrement;
public CommandButton dumpWrist;
public CommandButton scoopWrist;

public OperatorController(CommandGamepad g, Robot r) {
robot = r;
Expand All @@ -50,13 +52,15 @@ private void AssignNamedControllerButton() {
//temp changing the button below from biteJaw to intake :DD
biteJaw = gamepad.ps_cross;
releaseJaw = gamepad.ps_triangle;
dumpWrist = gamepad.ps_share;
scoopWrist = gamepad.ps_options;
// suspend = gamepad.ps_circle;
// armIntake = gamepad.ps_square;
// armLowNet = gamepad.dpadLeft;
// armLowSpecimen = gamepad.leftStickButton;
// armHighSpecimen = gamepad.rightStickButton;
armHorizontal = gamepad.ps_share;
armVertical = gamepad.ps_options;
//armHorizontal = gamepad.ps_share;
//armVertical = gamepad.ps_options;
armIncrement = gamepad.ps_circle;
armDecrement = gamepad.ps_square;
}
Expand Down Expand Up @@ -94,12 +98,18 @@ public void bindKidShampooControls() {
spitIntake.whenPressed(
Command.create(robot.kidShampooSubsystem::spitIntake, robot.kidShampooSubsystem)
);
slurpIntake.whenReleased(
slurpIntake.whenPressed(
Command.create(robot.kidShampooSubsystem::stopIntake, robot.kidShampooSubsystem)
);
spitIntake.whenReleased(
Command.create(robot.kidShampooSubsystem::stopIntake, robot.kidShampooSubsystem)
);
dumpWrist.whenPressed(
Command.create(robot.kidShampooSubsystem::stopIntake, robot.kidShampooSubsystem)
);
scoopWrist.whenPressed(
Command.create(robot.kidShampooSubsystem::stopIntake, robot.kidShampooSubsystem)
);
}

public void bindArmControls() {
Expand Down

0 comments on commit 1fa6b93

Please sign in to comment.