Skip to content

Commit

Permalink
16750 Horizontal slides testing - what is currently on the bot - Maggie
Browse files Browse the repository at this point in the history
  • Loading branch information
TechnototesLaptop authored and kevinfrei committed Nov 3, 2024
1 parent 83f2608 commit 7637a7b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static SequentialCommandGroup transferring(Robot r) {
r.horizontalSlidesSubsystem::ClawWristServoTransfer,
r.horizontalSlidesSubsystem
),
Command.create(r.horizontalSlidesSubsystem::slidesin, r.horizontalSlidesSubsystem)
horizontalRetract(r)
// commands for vertical slide bucket transfer position first, then wrist transferring
);
}
Expand Down Expand Up @@ -76,7 +76,7 @@ public static SequentialCommandGroup intake(Robot r) {
r.horizontalSlidesSubsystem::ClawWristServoTransfer,
r.horizontalSlidesSubsystem
),
Command.create(r.horizontalSlidesSubsystem::slidesout, r.horizontalSlidesSubsystem),
horizontalExtend(r),
new WaitCommand(1),
Command.create(
r.horizontalSlidesSubsystem::ClawWristServoPickup,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ public OperatorController(CommandGamepad g, Robot r) {
}

private void AssignNamedControllerButton() {
openClaw = gamepad.rightBumper;
closeClaw = gamepad.leftBumper;
//wristTransfer = gamepad.ps_triangle;
//wristPickup = gamepad.ps_square;
//wristIncrement = gamepad.dpadRight;
//wristDecrement = gamepad.dpadLeft;
openClaw = gamepad.leftBumper;
closeClaw = gamepad.rightBumper;
wristTransfer = gamepad.ps_circle;
wristPickup = gamepad.ps_square;
wristIncrement = gamepad.dpadRight;
wristDecrement = gamepad.dpadLeft;
horislidesLeftStick = gamepad.leftStick;
horislidesExtend = gamepad.ps_triangle;
horislidesRetract = gamepad.ps_cross;
Expand All @@ -47,17 +47,17 @@ private void BindButtons() {
// Remember to only bind buttons for attached subsystems
if (Setup.Connected.HORIZONTALSLIDESUBSYSTEM) {
bindHorizontalSlidesControls();
//bindHorizontalAnalogControls(); // not yet tested
bindHorizontalAnalogControls();
}
}

private void bindHorizontalSlidesControls() {
openClaw.whenPressed(HorizontalSlidesCommands.clawOpen(robot));
closeClaw.whenPressed(HorizontalSlidesCommands.clawChomp(robot));
//wristPickup.whenPressed(HorizontalSlidesCommands.wristPickup(robot));
//wristTransfer.whenPressed(HorizontalSlidesCommands.wristTransfer(robot));
//wristIncrement.whenPressed(HorizontalSlidesCommands.wristIncrement(robot));
//wristDecrement.whenPressed(HorizontalSlidesCommands.wristDecrement(robot));
wristPickup.whenPressed(HorizontalSlidesCommands.wristPickup(robot));
wristTransfer.whenPressed(HorizontalSlidesCommands.wristTransfer(robot));
wristIncrement.whenPressed(HorizontalSlidesCommands.wristIncrement(robot));
wristDecrement.whenPressed(HorizontalSlidesCommands.wristDecrement(robot));
horislidesExtend.whenPressed(HorizontalSlidesCommands.intake(robot));
horislidesRetract.whenPressed(HorizontalSlidesCommands.transferring(robot));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class HorizontalSlidesSubsystem implements Subsystem, Loggable {
public static double ClawServoOpen = 0.8;
public static double WristServoTransfer = 0.3;
public static double WristServoPickup = 1;
public static double WristServoIncrement = 0.555;
public static double WristServoIncrement = 0.2;

@Log(name = "wristTarget")
public double wristTargetPos;
Expand Down

0 comments on commit 7637a7b

Please sign in to comment.