Skip to content

Commit 404eaf2

Browse files
committed
Merge branch 'main' into update-Intake
2 parents fc45252 + f73c236 commit 404eaf2

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

src/main/java/frc/robot/Constants.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -301,10 +301,10 @@ public static boolean isRedAlliance() {
301301

302302
public static class constElevator {
303303

304-
public static final Distance CORAL_L1_HEIGHT = Units.Inches.of(0);
305-
public static final Distance CORAL_L2_HEIGHT = Units.Inches.of(0);
306-
public static final Distance CORAL_L3_HEIGHT = Units.Inches.of(0);
307-
public static final Distance CORAL_L4_HEIGHT = Units.Inches.of(0);
304+
public static final Distance CORAL_L1_HEIGHT = Units.Inches.of(1);
305+
public static final Distance CORAL_L2_HEIGHT = Units.Inches.of(2);
306+
public static final Distance CORAL_L3_HEIGHT = Units.Inches.of(3);
307+
public static final Distance CORAL_L4_HEIGHT = Units.Inches.of(4);
308308
public static final Distance ALGAE_NET_HEIGHT = Units.Inches.of(0);
309309
public static final Distance DEADZONE_DISTANCE = Units.Inches.of(0);
310310

src/main/java/frc/robot/RobotContainer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,8 @@ private void configOperatorBindings() {
205205

206206
conOperator.btn_RightStick
207207
.onTrue(TRY_PREP_CORAL_ZERO)
208-
.onTrue(TRY_PREP_CORAL_ZERO_WITH_ALGAE);
208+
.onTrue(TRY_PREP_CORAL_ZERO_WITH_ALGAE)
209+
.onTrue(TRY_PREP_ALGAE_ZERO);
209210

210211
conOperator.btn_North
211212
.onTrue(TRY_PREP_ALGAE_NET)

src/main/java/frc/robot/subsystems/StateMachine.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@ public Command tryState(RobotState desiredState) {
315315
case INTAKE_ALGAE_GROUND:
316316
case SCORING_CORAL_WITH_ALGAE:
317317
case INTAKE_CORAL_GROUND_WITH_ALGAE:
318+
case INTAKE_CORAL_STATION_WITH_ALGAE:
318319
return new HasAlgae(subStateMachine);
319320
}
320321
break;
@@ -483,8 +484,9 @@ public Command tryState(RobotState desiredState) {
483484
switch (currentRobotState) {
484485
case HAS_ALGAE:
485486
case INTAKE_CORAL_GROUND_WITH_ALGAE:
486-
487+
return new IntakeCoralStationWithAlgae(subStateMachine);
487488
}
489+
break;
488490
}
489491
return Commands.print("ITS SO OVER D: Invalid State Provided, Blame Eli. Attempted to go to: "
490492
+ desiredState.toString() + " while at " + currentRobotState.toString());

0 commit comments

Comments
 (0)