Skip to content

Auto revamp#72

Open
Murat65536 wants to merge 15 commits into
mainfrom
auto-revamp
Open

Auto revamp#72
Murat65536 wants to merge 15 commits into
mainfrom
auto-revamp

Conversation

@Murat65536
Copy link
Copy Markdown
Contributor

Pull Request


Issue Number

Comments

Copy link
Copy Markdown
Member

@reediculous456 reediculous456 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs UML update

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Refactors the autonomous mode selection to use a richer enum (AutonChoice) with per-choice display names and construction logic, and updates the generated UML diagrams accordingly.

Changes:

  • Replace AutonChoices with AutonChoice and move auton construction behind a factory-backed enum method.
  • Populate the SendableChooser from AutonChoice.values() instead of hardcoding options.
  • Update UML diagrams/relationships to reflect the new auton selection types.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/main/java/frc/robot/autons/AutonSelector.java Introduces AutonChoice enum with display names + factory method; updates chooser initialization and selection logic.
src/main/java/frc/robot/subsystems/Dashboard.java Updates chooser generic type/import to AutonChoice.
src/uml/uml.mmd Updates overall generated class diagram entries for auton selection refactor.
src/uml/relationships.mmd Updates auton selection relationships to AutonChoice / AutonFactory.
src/uml/frc/robot/subsystems/Dashboard.mmd Updates UML for Dashboard chooser type change.
src/uml/frc/robot/autons/AutonSelector.mmd Updates UML for AutonSelector chooser type change.
src/uml/frc/robot/autons/AutonFactory.mmd Adds UML entry for the auton factory interface.
src/uml/frc/robot/autons/AutonChoices.mmd Removes old UML enum for AutonChoices.
src/uml/frc/robot/autons/AutonChoice.mmd Adds UML entry for the new AutonChoice enum.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/main/java/frc/robot/autons/AutonSelector.java
Comment thread src/main/java/frc/robot/autons/AutonSelector.java Outdated
Comment thread src/main/java/frc/robot/autons/AutonSelector.java Outdated
Comment thread src/main/java/frc/robot/autons/AutonSelector.java Outdated
Copy link
Copy Markdown
Member

@reediculous456 reediculous456 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copilot has several important comments that need to be addressed

Copy link
Copy Markdown
Member

@reediculous456 reediculous456 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved but we shouldn't merge this without extensive testing and probably not until after MVR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants