Skip to content
This repository has been archived by the owner on Aug 31, 2024. It is now read-only.

Commit

Permalink
Add new lower slide height
Browse files Browse the repository at this point in the history
  • Loading branch information
DragonDev07 committed Mar 9, 2024
1 parent 86f2b11 commit 5358dfe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public enum Location {
}

// ------ Declare Slide Positions ------ //
public static int[] slidePositions = { 0, -482, -2110, -3460};
public static int[] slidePositions = { 0, -200, -482, -2110, -3460};

// ------ Declare Servo Positions ------ //
public static double passoverDeliveryPos = 0.2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public void loop() {
break;
case SLIDES_UP:
// Set Slide Height
slideHeight = 3;
slideHeight = 4;

// Set Next State
endgameState = EndgameState.CLIMB;
Expand All @@ -219,8 +219,8 @@ public void loop() {
slideHeight++;

// If value is above 2, don't increase
if (slideHeight > 3) {
slideHeight = 3;
if (slideHeight > HWC.slidePositions.length - 1) {
slideHeight = HWC.slidePositions.length - 1;
}
}

Expand Down Expand Up @@ -321,6 +321,9 @@ public void loop() {
robot.pulleyLComponent.setTarget(HWC.slidePositions[3]);
robot.pulleyRComponent.setTarget(HWC.slidePositions[3]);
break;
case 4:
robot.pulleyLComponent.setTarget(HWC.slidePositions[4]);
robot.pulleyRComponent.setTarget(HWC.slidePositions[4]);
}

// ------ Telemetry Updates ------ //
Expand Down

0 comments on commit 5358dfe

Please sign in to comment.