Skip to content
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

Create the Vision subsystem #6

Open
danielbrownmsm opened this issue Jan 9, 2023 · 0 comments
Open

Create the Vision subsystem #6

danielbrownmsm opened this issue Jan 9, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request long-term stuff that we don't necessarily have to do right now

Comments

@danielbrownmsm
Copy link
Collaborator

Summary
Vision tracking will be pretty important this game, so we need to be doing some of it. To do our computer vision, we will probably use a Raspberry Pi with PhotonVision, so this subsystem doesn't need to do any actual vision pipelining. It only needs to handle getting values from PhotonVision and controlling the LED ring for the reflective tape. To do this, it should have the following functions:

  • a function to get horizontal error between the robot's center and the cone poles
  • a function to get the estimated distance to the cone pole
  • a function to align with the cube scoring location (the one with the AprilTag)
  • a function to get distance to the cube scoring location
  • a function to get angle of the cube scoring location (iirc there's only an AprilTag on the middle one, so to align with the top one, we'd need to add an offset)
  • a function to reset the subsystem (although this doesn't need to currently do anything)

note: each traffic cone pole has its own tape iirc, so we'll need to adjust whether we're aligning with the top or middle one depending on the button press or position of the arm

Work Required

  • create subsystem
  • write functions
  • add shuffleboard
  • write periodic()

Verification

  • CI builds
  • code is commented
  • code is well-written (or at least 'good enough')
@danielbrownmsm danielbrownmsm added the enhancement New feature or request label Jan 9, 2023
@danielbrownmsm danielbrownmsm added this to the Base Code milestone Jan 9, 2023
@jkleiber jkleiber modified the milestones: Base Code, Base Actions Jan 16, 2023
@danielbrownmsm danielbrownmsm added the long-term stuff that we don't necessarily have to do right now label Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request long-term stuff that we don't necessarily have to do right now
Projects
None yet
Development

No branches or pull requests

3 participants