Skip to content

Commit dbc9e9d

Browse files
committed
Scoring tuning
1 parent df97784 commit dbc9e9d

3 files changed

Lines changed: 12 additions & 15 deletions

File tree

src/main/java/frc/robot/constants/ElevatorConstants.java

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,11 @@ public final class ElevatorConstants {
2828
// Scoring positions
2929
public static final double L1_POSITION = 0;
3030
public static final double STAGE_L2_POSITION = 12.52;
31-
public static final double SCORE_L2_POSITION = 5.52;
32-
public static final double RETRACT_L2_POSITION = 2.52;
33-
public static final double STAGE_L3_POSITION = 30.68;
34-
public static final double SCORE_L3_POSITION = 23.68;
35-
public static final double RETRACT_L3_POSITION = 20.68;
31+
public static final double SCORE_L2_POSITION = 0.02;
32+
public static final double STAGE_L3_POSITION = 30.18;
33+
public static final double SCORE_L3_POSITION = 17.68;
3634
public static final double STAGE_L4_POSITION = 54.5;
37-
public static final double SCORE_L4_POSITION = 51.5;
38-
public static final double RETRACT_L4_POSITION = 42;
35+
public static final double SCORE_L4_POSITION = 43.5;
3936
public static final double PROCESSOR_POSITION = 0;
4037
public static final double NET_POSITION = 54;
4138

src/main/java/frc/robot/constants/IntakeConstants.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ public class IntakeConstants {
1414
public static final double CORAL_INTAKE_VELOCITY = 120;
1515
public static final double ALGAE_INTAKE_VELOCITY = 120;
1616
public static final double ALGAE_REMOVE_VELOCITY = -80;
17-
public static final double L1_EJECT_VELOCITY = -10;
18-
public static final double BRANCH_EJECT_VELOCITY = -10;
17+
public static final double L1_EJECT_VELOCITY = -20;
18+
public static final double BRANCH_EJECT_VELOCITY = -15;
1919
public static final double PROCESSOR_EJECT_VELOCITY = -120;
2020
public static final double NET_EJECT_VELOCITY = -120;
2121

src/main/java/frc/robot/constants/SuperstructureConstants.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,13 @@ public class SuperstructureConstants {
8585
IntakeConstants.CORAL_REST_VELOCITY);
8686

8787
public static final SuperstructureState PLACE_L2_STATE = new SuperstructureState(
88-
ElevatorConstants.RETRACT_L2_POSITION,
88+
ElevatorConstants.SCORE_L2_POSITION,
8989
ArmConstants.L2_SCORING_POSITION,
9090
WristConstants.PARALLEL_CURRENT,
9191
IntakeConstants.CORAL_REST_VELOCITY);
9292

9393
public static final SuperstructureState RETRACT_L2_STATE = new SuperstructureState(
94-
ElevatorConstants.RETRACT_L2_POSITION,
94+
ElevatorConstants.SCORE_L2_POSITION,
9595
ArmConstants.STOWED_POSITION,
9696
WristConstants.PARALLEL_CURRENT,
9797
IntakeConstants.BRANCH_EJECT_VELOCITY);
@@ -117,13 +117,13 @@ public class SuperstructureConstants {
117117
IntakeConstants.CORAL_REST_VELOCITY);
118118

119119
public static final SuperstructureState PLACE_L3_STATE = new SuperstructureState(
120-
ElevatorConstants.RETRACT_L3_POSITION,
120+
ElevatorConstants.SCORE_L3_POSITION,
121121
ArmConstants.L3_SCORING_POSITION,
122122
WristConstants.PARALLEL_CURRENT,
123123
IntakeConstants.CORAL_REST_VELOCITY);
124124

125125
public static final SuperstructureState RETRACT_L3_STATE = new SuperstructureState(
126-
ElevatorConstants.RETRACT_L3_POSITION,
126+
ElevatorConstants.SCORE_L3_POSITION,
127127
ArmConstants.STOWED_POSITION,
128128
WristConstants.PARALLEL_CURRENT,
129129
IntakeConstants.BRANCH_EJECT_VELOCITY);
@@ -149,13 +149,13 @@ public class SuperstructureConstants {
149149
IntakeConstants.CORAL_REST_VELOCITY);
150150

151151
public static final SuperstructureState PLACE_L4_STATE = new SuperstructureState(
152-
ElevatorConstants.RETRACT_L4_POSITION,
152+
ElevatorConstants.SCORE_L4_POSITION,
153153
ArmConstants.L4_SCORING_POSITION,
154154
WristConstants.PARALLEL_CURRENT,
155155
IntakeConstants.CORAL_REST_VELOCITY);
156156

157157
public static final SuperstructureState RETRACT_L4_STATE = new SuperstructureState(
158-
ElevatorConstants.RETRACT_L4_POSITION,
158+
ElevatorConstants.SCORE_L4_POSITION,
159159
ArmConstants.STOWED_POSITION,
160160
WristConstants.PARALLEL_CURRENT,
161161
IntakeConstants.BRANCH_EJECT_VELOCITY);

0 commit comments

Comments
 (0)