Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

Commit 6a81d81

Browse files
committed
Replaced QueuerState.IDLE_NO_GP and QueuerState.IDLE_WITH_GP with one single idle state
1 parent 23b2066 commit 6a81d81

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/main/java/frc/robot/queuer/QueuerState.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
package frc.robot.queuer;
22

33
public enum QueuerState {
4-
IDLE_WITH_GP,
5-
IDLE_NO_GP,
4+
IDLE,
65
SHOOTING,
76
INTAKING,
87
OUTTAKING;

src/main/java/frc/robot/queuer/QueuerSubsystem.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ public boolean hasNote() {
4747
@Override
4848
protected void afterTransition(QueuerState newState) {
4949
switch (newState) {
50-
case IDLE_NO_GP -> motor.disable();
51-
case IDLE_WITH_GP -> motor.disable();
50+
case IDLE -> motor.disable();
5251
case SHOOTING -> motor.setVoltage(0); // probably like 12
5352
case INTAKING -> motor.setVoltage(0); // probably like 4
5453
case OUTTAKING -> motor.setVoltage(0); // proabably like -4

0 commit comments

Comments
 (0)