Skip to content
This repository was archived by the owner on May 19, 2024. It is now read-only.

Commit ae4dccc

Browse files
committed
feat(intake): Improve eject sequence.
1 parent 68d3c6d commit ae4dccc

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ public static class FrontRollerConstants {
3232

3333
public static final double INTAKE_SPEED = 34;
3434

35+
public static final double EJECT_SPEED = -34;
36+
3537
/** Maximum speed of the roller in rotations per second. */
3638
public static final double MAXIMUM_SPEED = 67;
3739
}
@@ -62,6 +64,8 @@ public static class BackRollerConstants {
6264

6365
public static final double INTAKE_SPEED = 34;
6466

67+
public static final double EJECT_SPEED = -34;
68+
6569
/** Maximum speed of the roller in rotations per second. */
6670
public static final double MAXIMUM_SPEED = 67;
6771
}

src/main/java/frc/robot/intake/IntakeState.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ public record IntakeState(
1313

1414
public static final IntakeState INTAKE = new IntakeState(FrontRollerConstants.INTAKE_SPEED, BackRollerConstants.INTAKE_SPEED);
1515

16+
public static final IntakeState EJECT = new IntakeState(FrontRollerConstants.EJECT_SPEED, BackRollerConstants.EJECT_SPEED);
17+
1618
public IntakeState {
1719
Objects.requireNonNull(frontRollerVelocityRotationsPerSecond);
1820
Objects.requireNonNull(backRollerVelocityRotationsPerSecond);

src/main/java/frc/robot/superstructure/SuperstructureState.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ public record SuperstructureState(
2222
new SuperstructureState(ArmState.STOW, IntakeState.INTAKE, ShooterState.INTAKE);
2323

2424
public static final SuperstructureState EJECT_POSITION =
25-
new SuperstructureState(ArmState.EJECT, IntakeState.IDLE, ShooterState.IDLE);
25+
new SuperstructureState(ArmState.EJECT, IntakeState.EJECT, ShooterState.IDLE);
2626

2727
public static final SuperstructureState EJECT =
28-
new SuperstructureState(ArmState.EJECT, IntakeState.IDLE, ShooterState.EJECT);
28+
new SuperstructureState(ArmState.EJECT, IntakeState.EJECT, ShooterState.EJECT);
2929

3030
public static final SuperstructureState SPEAKER_PULL =
3131
new SuperstructureState(ArmState.SPEAKER, IntakeState.IDLE, ShooterState.PULL);

0 commit comments

Comments
 (0)