calhighrobotics / high_stakes_x

1516X's Codebase for the 2024-2025 VEX VRC Game, High Stakes
https://calhighrobotics.github.io/high_stakes_x/
MIT License
6 stars 0 forks source link

Optical Sensor implementation to allow for Ring Skipping #42

Open absozero opened 1 month ago

absozero commented 1 month ago

Deprecating the use of the vision sensor to determine color signatures to skip rings by, we move to the optical sensor, in order to determine the color of the ring.

Similar to the previous implementation, we will skip a ring when the opposite color is detected, through the use of getting hue, from the optical sensor.

It is implied that the implementation of this sensor's usage in the robot will require a code modification of the existing vision sensor branch, as in #40 before it was closed.

In order to recieve a better color difference reading, we will use either delta-E or Euclidean RGB distance to compute the distance of the given color from the optical sensor from the color of the ring given by VEX, allowing us to quantify color differences.

absozero commented 2 weeks ago

In the pull request for this issue, compare between rgba computation and hue area usage.

absozero commented 1 week ago

Moving intake implementation into a PROS task