Skip to content

Vision - #1

Closed
Mr-Pyro wants to merge 10 commits into
mainfrom
vision
Closed

Mr-Pyro wants to merge 10 commits into
mainfrom
vision

Conversation

@Mr-Pyro

@Mr-Pyro Mr-Pyro commented Jan 15, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@Mr-Pyro Mr-Pyro self-assigned this Jan 15, 2026

@rafaelbaird rafaelbaird 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.

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};

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.

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;

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.

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();
}

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.

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)
-
@cbgpenguin cbgpenguin closed this Feb 7, 2026
@cbgpenguin

Copy link
Copy Markdown
Member

This was squashed & merged by Rafael.

@rafaelbaird
rafaelbaird deleted the vision branch February 13, 2026 03:59
BCODERW added a commit that referenced this pull request Mar 17, 2026
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.

3 participants