Skip to content

Aim While Shooting - #296

Merged
TaylerUva merged 13 commits into
mainfrom
aim-while-shooting
Apr 25, 2026
Merged

Aim While Shooting#296
TaylerUva merged 13 commits into
mainfrom
aim-while-shooting

Conversation

@Wu-Fan-529

Copy link
Copy Markdown
Member

No description provided.

TaylerUva and others added 3 commits April 20, 2026 19:56
Co-authored-by: Yutong Zhu <yutong59202@gmail.com>
Copilot AI review requested due to automatic review settings April 21, 2026 04:48
@Wu-Fan-529
Wu-Fan-529 requested a review from a team as a code owner April 21, 2026 04:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds “aim while shooting” behavior by centralizing shooter/hood/drivetrain aiming logic and gating drivetrain aiming during Shooting based on vision tag visibility.

Changes:

  • Added tag-visibility helpers to Vision (getTotalTagCount(), seesTags()) and a getter for the active Limelight identifier.
  • Introduced SubCommands.aim(...) helper to compute/set flywheel speed, hood angle, and optionally drivetrain rotation.
  • Updated PrepAnywhere to use the shared aiming helper, and updated Shooting to keep aiming (instead of immediately X-braking) when coming from PREP_ANYWHERE and tags are visible.

Reviewed changes

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

File Description
src/main/java/frc/robot/subsystems/Vision.java Exposes limelight-in-use and tag-visibility helpers used to gate aiming behavior.
src/main/java/frc/robot/commands/states/Shooting.java Adds logic to continue aiming during Shooting when applicable; adjusts X-brake behavior.
src/main/java/frc/robot/commands/states/PrepShoots/PrepAnywhere.java Replaces duplicated aiming calculations with a shared helper call.
src/main/java/frc/robot/commands/SubCommands.java New shared “aim” helper used by multiple commands to keep aiming logic consistent.

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

Comment thread src/main/java/frc/robot/commands/states/Shooting.java Outdated
Comment thread src/main/java/frc/robot/commands/states/Shooting.java Outdated
Comment thread src/main/java/frc/robot/commands/SubCommands.java Outdated
Comment thread src/main/java/frc/robot/commands/SubCommands.java
Comment thread src/main/java/frc/robot/commands/SubCommands.java Outdated
Comment thread src/main/java/frc/robot/subsystems/Vision.java
@TaylerUva
TaylerUva enabled auto-merge (squash) April 21, 2026 04:52

@TaylerUva TaylerUva left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We might need to slightly modify this to allow aiming I without moving drivetrain to account for us being pushed forward or back. I have some ideas to accomplish this but you should give it a try

@TaylerUva TaylerUva added the ✨ Code Good - Ready to Test Code logic is good and ready to be approved just needs testing label Apr 21, 2026
Co-authored-by: Yutong Zhu <yutong59202@gmail.com>
Copilot AI review requested due to automatic review settings April 22, 2026 03:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

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


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

Comment thread src/main/java/frc/robot/subsystems/Vision.java
Comment thread src/main/java/frc/robot/commands/SubCommands.java
Comment thread src/main/java/frc/robot/commands/SubCommands.java Outdated
Comment thread src/main/java/frc/robot/commands/states/Shooting.java Outdated
Copilot AI review requested due to automatic review settings April 25, 2026 00:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.


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

Comment thread src/main/java/frc/robot/constants/ConstRotors.java
Copilot AI review requested due to automatic review settings April 25, 2026 02:57

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 12 out of 12 changed files in this pull request and generated 2 comments.


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

Comment thread src/main/java/frc/robot/subsystems/Vision.java
Comment thread src/main/java/frc/robot/commands/SubCommands.java
Copilot AI review requested due to automatic review settings April 25, 2026 05:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 13 out of 13 changed files in this pull request and generated 1 comment.


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

Comment thread src/main/java/frc/robot/subsystems/Drivetrain.java
@TaylerUva
TaylerUva merged commit 62a8e0b into main Apr 25, 2026
6 checks passed
@TaylerUva
TaylerUva deleted the aim-while-shooting branch April 25, 2026 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ Code Good - Ready to Test Code logic is good and ready to be approved just needs testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants