Skip to content

Conversation

@Wu-Fan-529
Copy link
Contributor

No description provided.

@Wu-Fan-529 Wu-Fan-529 requested a review from a team as a code owner October 21, 2025 02:33
Copilot AI review requested due to automatic review settings October 21, 2025 02:33
Copy link
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

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.

Copilot AI review requested due to automatic review settings October 23, 2025 00:03
Copy link
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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

EliUva and others added 2 commits October 22, 2025 17:08
Co-Authored-By: Yutong Zhu <3681247216@qq.com>
Copilot AI review requested due to automatic review settings October 23, 2025 01:21
Copy link
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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

EliUva and others added 3 commits October 23, 2025 18:19
Co-Authored-By: Yutong Zhu <3681247216@qq.com>
Copilot AI review requested due to automatic review settings October 24, 2025 01:29
Copy link
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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@TaylerUva TaylerUva enabled auto-merge (squash) October 25, 2025 03:10
@TaylerUva TaylerUva merged commit 9863a1c into main Oct 25, 2025
1 check passed
@TaylerUva TaylerUva deleted the auto-fixes branch October 25, 2025 03:38
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.

5 participants