Skip to content

Commit

Permalink
16750 Horizontal slides done - is working - 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 f857227 commit 83f2608
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.technototes.library.command.Command;
import com.technototes.library.command.SequentialCommandGroup;
import com.technototes.library.command.WaitCommand;
import org.firstinspires.ftc.sixteen750.Robot;

public class HorizontalSlidesCommands {
Expand Down Expand Up @@ -43,11 +44,7 @@ public static SequentialCommandGroup transferring(Robot r) {
r.horizontalSlidesSubsystem::ClawWristServoTransfer,
r.horizontalSlidesSubsystem
),
Command.create(r.horizontalSlidesSubsystem::slidesin, r.horizontalSlidesSubsystem),
Command.create(
r.horizontalSlidesSubsystem::ClawServoBigOpen,
r.horizontalSlidesSubsystem
)
Command.create(r.horizontalSlidesSubsystem::slidesin, r.horizontalSlidesSubsystem)
// commands for vertical slide bucket transfer position first, then wrist transferring
);
}
Expand Down Expand Up @@ -80,6 +77,7 @@ public static SequentialCommandGroup intake(Robot r) {
r.horizontalSlidesSubsystem
),
Command.create(r.horizontalSlidesSubsystem::slidesout, r.horizontalSlidesSubsystem),
new WaitCommand(1),
Command.create(
r.horizontalSlidesSubsystem::ClawWristServoPickup,
r.horizontalSlidesSubsystem
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ public OperatorController(CommandGamepad g, Robot r) {
}

private void AssignNamedControllerButton() {
openClaw = gamepad.ps_circle;
closeClaw = gamepad.ps_cross;
wristTransfer = gamepad.ps_triangle;
wristPickup = gamepad.ps_square;
wristIncrement = gamepad.dpadRight;
wristDecrement = gamepad.dpadLeft;
openClaw = gamepad.rightBumper;
closeClaw = gamepad.leftBumper;
//wristTransfer = gamepad.ps_triangle;
//wristPickup = gamepad.ps_square;
//wristIncrement = gamepad.dpadRight;
//wristDecrement = gamepad.dpadLeft;
horislidesLeftStick = gamepad.leftStick;
horislidesExtend = gamepad.dpadUp;
horislidesRetract = gamepad.dpadDown;
horislidesExtend = gamepad.ps_triangle;
horislidesRetract = gamepad.ps_cross;
}

private void BindButtons() {
Expand All @@ -54,12 +54,12 @@ private void BindButtons() {
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));
horislidesExtend.whenPressed(HorizontalSlidesCommands.horizontalExtend(robot));
horislidesRetract.whenPressed(HorizontalSlidesCommands.horizontalRetract(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));
}

public void bindHorizontalAnalogControls() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public class HorizontalSlidesSubsystem implements Subsystem, Loggable {

public static double LinkServoExtend = 0.6;
public static double LinkServoRetract = 1;
public static double ClawServoClose = 0.1;
public static double ClawServoOpen = 0.5;
public static double ClawServoClose = 0.3;
public static double ClawServoOpen = 0.8;
public static double WristServoTransfer = 0.3;
public static double WristServoPickup = 1;
public static double WristServoIncrement = 0.555;
Expand Down

0 comments on commit 83f2608

Please sign in to comment.