-
Notifications
You must be signed in to change notification settings - Fork 0
Auto fixes ( ̄o ̄) . z Z #196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR refactors the autonomous mode initialization by moving odometry reset logic from individual auto command sequences into a centralized onChange callback on the auto chooser. Additionally, it adjusts rotation inversion behavior for simulation environments and adds missing .asProxy() calls.
- Centralizes odometry reset using
autoChooser.onChange()callback instead of embedding it in each auto sequence - Removes default option status from "4 Coral - Processor Side" autonomous mode
- Conditionally inverts rotation based on simulation state
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| RobotContainer.java | Adds centralized odometry reset via onChange callback, removes redundant resetOdometry calls from auto sequences, changes default auto option, and adds missing asProxy() call |
| Constants.java | Makes rotation inversion conditional based on simulation state |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-Authored-By: Yutong Zhu <3681247216@qq.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
Co-Authored-By: Yutong Zhu <3681247216@qq.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
Co-Authored-By: Yutong Zhu <3681247216@qq.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
No description provided.