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

Commit fe82a78

Browse files
committed
Fix typos & formatting
1 parent fc974bf commit fe82a78

File tree

1 file changed

+4
-18
lines changed

1 file changed

+4
-18
lines changed

src/main/java/frc/robot/robot_manager/RobotManager.java

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ public RobotManager(
4747
@Override
4848
protected void collectInputs() {}
4949

50-
protected RobotState getNexState(RobotState currentState) {
51-
// state transition
50+
@Override
51+
protected RobotState getNextState(RobotState currentState) {
5252
switch (currentState) {
5353
case SPEAKER_WAITING,
5454
AMP_WAITING,
@@ -117,7 +117,6 @@ protected RobotState getNexState(RobotState currentState) {
117117

118118
@Override
119119
protected void afterTransition(RobotState newState) {
120-
// on state change
121120
switch (newState) {
122121
case SPEAKER_PREPARE_TO_SCORE, SPEAKER_SCORING, SPEAKER_WAITING -> {
123122
arm.setState(ArmState.SPEAKER_SHOT);
@@ -192,7 +191,7 @@ protected void afterTransition(RobotState newState) {
192191
public void robotPeriodic() {
193192
super.robotPeriodic();
194193

195-
// continous sate action
194+
// Continuous state actions
196195
switch (getState()) {
197196
case SPEAKER_PREPARE_TO_SCORE, SPEAKER_SCORING, SPEAKER_WAITING -> {
198197
shooter.setDistanceToSpeaker(distanceToSpeaker);
@@ -202,20 +201,7 @@ public void robotPeriodic() {
202201
shooter.setDistanceToFeedSpot(distanceToFeedSpot);
203202
arm.setDistanceToFeedSpot(distanceToFeedSpot);
204203
}
205-
206-
case AMP_PREPARE_TO_SCORE,
207-
PASS_PREPARE_TO_SHOOT,
208-
AMP_SCORING,
209-
PASS_SHOOTING,
210-
UNJAM,
211-
INTAKING,
212-
OUTTAKING,
213-
IDLE_NO_GP,
214-
IDLE_WITH_GP,
215-
CLIMBING_1_LINEUP,
216-
CLIMBING_2_HANGING,
217-
PASS_WAITING,
218-
AMP_WAITING -> {}
204+
default -> {}
219205
}
220206
}
221207
}

0 commit comments

Comments
 (0)