State machine update - #32
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Renames several robot state machine entries and their corresponding command classes to align names across the diagram and Java code. The PREP_DEPOT and PREP_NON_OUTPOST enum values are removed, and the PrepDepot/PrepNonOutpost/PrepOutpost command classes are renamed to PrepHub/PrepCorner/PrepTower. The robot.tldr state diagram is updated (mostly) to reflect the new names, plus some unrelated tldraw editor metadata churn.
Changes:
- Remove
PREP_DEPOTandPREP_NON_OUTPOSTfromRobotStateenum. - Rename command classes
PrepDepot→PrepHub,PrepNonOutpost→PrepCorner,PrepOutpost→PrepTower(file/class only — Javadoc and method bodies otherwise unchanged). - Update
robot.tldrshape labels to the new names; reformat empty lifecycle method bodies in the renamed commands.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/main/java/frc/robot/subsystems/StateMachine.java | Drops PREP_DEPOT and PREP_NON_OUTPOST from the RobotState enum. |
| src/main/java/frc/robot/commands/states/PrepHub.java | Renames PrepDepot class/constructor to PrepHub; Javadoc still says "PrepDepot". |
| src/main/java/frc/robot/commands/states/PrepCorner.java | Renames PrepNonOutpost class/constructor to PrepCorner; Javadoc still says "PrepNonOutpost". |
| src/main/java/frc/robot/commands/states/PrepTower.java | Renames PrepOutpost class/constructor to PrepTower; Javadoc still says "PrepOutpost". |
| robot.tldr | Updates several state diagram labels to new names; re-adds an PrepOpponentToAlliance shape but with a misspelling, plus unrelated tldraw editor state changes. |
Comments suppressed due to low confidence (3)
src/main/java/frc/robot/commands/states/PrepHub.java:10
- The Javadoc comment still references the old class name
PrepDepot. Since the class has been renamed toPrepHub, this comment should be updated to match.
src/main/java/frc/robot/commands/states/PrepCorner.java:10 - The Javadoc comment still references the old class name
PrepNonOutpost. Since the class has been renamed toPrepCorner, this comment should be updated to match.
src/main/java/frc/robot/commands/states/PrepTower.java:10 - The Javadoc comment still references the old class name
PrepOutpost. Since the class has been renamed toPrepTower, this comment should be updated to match.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
TaylerUva
approved these changes
May 30, 2026
TaylerUva
approved these changes
May 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.