File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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 ());
You can’t perform that action at this time.
0 commit comments