Skip to content

Conversation

@aschokking
Copy link
Contributor

@aschokking aschokking commented Mar 30, 2025

Why are we doing this?

This speeds up approach, landing flush instead of crawling to ~3-4 inches away and then shoving to close the gap.

With this change the robot hits the reef a little more affirmatively. The accuracy might suffer but it was getting dark in the atrium and it's hard to say how much of it was this (since it should really only impact the final approach)

Asana task URL:

Whats changing?

Questions/notes for reviewers

How this was tested

  • tested on robot
  • tested in simulator
  • unit tests added

Tested in teleop, not auto yet

Video/screenshots (from simulator or live robot)


PR feedback legend

Symbol Meaning
⭐ ⭐ ⭐ must be addressed
⭐ ⭐ should be addressed
something to consider, a good idea

Copilot AI review requested due to automatic review settings March 30, 2025 02:31
@aschokking aschokking requested review from a team, Rongrrz and anthonytrenh as code owners March 30, 2025 02:31
Copy link

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 adjusts the approach logic for vision-based alignment to ensure the robot maintains a minimum drive power when approaching the reef, along with additional logging improvements. Key changes include multiplying the drive power by an approach factor, enforcing a minimum shove power when the computed power is too low, and adding extra logging records, plus commenting out wait commands in autonomous routines.

Reviewed Changes

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

File Description
src/main/java/competition/subsystems/drive/logic/AlignCameraToAprilTagCalculator.java Adjusted drive power calculation to include scaling and minimum power enforcement; added logging
src/main/java/competition/auto_programs/vision/RightFourCoralAuto.java Commented out a wait command with explanatory notes
src/main/java/competition/auto_programs/vision/LeftFourCoralAuto.java Commented out a wait command with explanatory notes

powers = new Translation2d(shovePower.get(), powers.getAngle());
}

driveIntent = new XYPair(powers.getX(), powers.getY());

This comment was marked as resolved.

@aschokking aschokking added the DONT MERGE This not safe to merge, don't do it! label Mar 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DONT MERGE This not safe to merge, don't do it!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants