This repository was archived by the owner on May 19, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ public static class FrontRollerConstants {
32
32
33
33
public static final double INTAKE_SPEED = 34 ;
34
34
35
+ public static final double EJECT_SPEED = -34 ;
36
+
35
37
/** Maximum speed of the roller in rotations per second. */
36
38
public static final double MAXIMUM_SPEED = 67 ;
37
39
}
@@ -62,6 +64,8 @@ public static class BackRollerConstants {
62
64
63
65
public static final double INTAKE_SPEED = 34 ;
64
66
67
+ public static final double EJECT_SPEED = -34 ;
68
+
65
69
/** Maximum speed of the roller in rotations per second. */
66
70
public static final double MAXIMUM_SPEED = 67 ;
67
71
}
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ public record IntakeState(
13
13
14
14
public static final IntakeState INTAKE = new IntakeState (FrontRollerConstants .INTAKE_SPEED , BackRollerConstants .INTAKE_SPEED );
15
15
16
+ public static final IntakeState EJECT = new IntakeState (FrontRollerConstants .EJECT_SPEED , BackRollerConstants .EJECT_SPEED );
17
+
16
18
public IntakeState {
17
19
Objects .requireNonNull (frontRollerVelocityRotationsPerSecond );
18
20
Objects .requireNonNull (backRollerVelocityRotationsPerSecond );
Original file line number Diff line number Diff line change @@ -22,10 +22,10 @@ public record SuperstructureState(
22
22
new SuperstructureState (ArmState .STOW , IntakeState .INTAKE , ShooterState .INTAKE );
23
23
24
24
public static final SuperstructureState EJECT_POSITION =
25
- new SuperstructureState (ArmState .EJECT , IntakeState .IDLE , ShooterState .IDLE );
25
+ new SuperstructureState (ArmState .EJECT , IntakeState .EJECT , ShooterState .IDLE );
26
26
27
27
public static final SuperstructureState EJECT =
28
- new SuperstructureState (ArmState .EJECT , IntakeState .IDLE , ShooterState .EJECT );
28
+ new SuperstructureState (ArmState .EJECT , IntakeState .EJECT , ShooterState .EJECT );
29
29
30
30
public static final SuperstructureState SPEAKER_PULL =
31
31
new SuperstructureState (ArmState .SPEAKER , IntakeState .IDLE , ShooterState .PULL );
You can’t perform that action at this time.
0 commit comments