Conversation
ask cad for location of hubs
rafaelbaird
reviewed
Jan 17, 2026
rafaelbaird
left a comment
Contributor
There was a problem hiding this comment.
Looks good in general. Minor errors only. I was looking into AdvantageKit's vision template, and I think we may want to implement vision their way instead, as it makes logging incredibly easy (also the way they set it up is just smart in general). We can transfer all the work you did over here to there, but keep both versions for now.
|
|
||
| public static final int[] hubIDsRed = {2, 3, 4, 5, 8, 9, 10, 11}; | ||
| public static final int[] hubIDsBlue = {18, 19, 20, 21, 24, 25, 26, 27}; | ||
| public static final int[] reefIDs = {2, 3, 4, 5, 8, 9, 10, 11, 18, 19, 20, 21, 24, 25, 26, 27}; |
Contributor
There was a problem hiding this comment.
reef ids? I think you meant to call this hubIDs.
|
|
||
| /* CONSTANTS */ | ||
| public static final double hubCenterX = 4.6245018; | ||
| public static final double hubCenterY = 4.105; |
Contributor
There was a problem hiding this comment.
I calculated this to be 4.034 meters both in Onshape and the field drawings. Where did 4.105 come from?
| Translation2d robotToHub = hubPose.getTranslation().minus(robotPose.getTranslation()); | ||
| return robotToHub.getAngle().getRotations(); | ||
| } | ||
|
|
Contributor
There was a problem hiding this comment.
These two methods look good!
Went through and read every file to understand. They are doing a couple of things that are great: - better logging through io layers - logging is separate from class logic, makes everything a TON more readable - no stupid bullshit periodic code - one vision object with multiple cameras that can be anything (sim, limelight, limelight without interal imu) -
Member
|
This was squashed & merged by Rafael. |
BCODERW
added a commit
that referenced
this pull request
Mar 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.