-
Notifications
You must be signed in to change notification settings - Fork 1
AlignToReef: Set min power for terminal approach with vision #344
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
base: main
Are you sure you want to change the base?
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 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 |
src/main/java/competition/subsystems/drive/logic/AlignCameraToAprilTagCalculator.java
Outdated
Show resolved
Hide resolved
| powers = new Translation2d(shovePower.get(), powers.getAngle()); | ||
| } | ||
|
|
||
| driveIntent = new XYPair(powers.getX(), powers.getY()); |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
…AprilTagCalculator.java Co-authored-by: Copilot <[email protected]>
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 in teleop, not auto yet
Video/screenshots (from simulator or live robot)
PR feedback legend