RobotCasserole1736 / RobotCasserole2020

Software for Robot Casserole's 2020 FIRST Infinite Recharge competition season
MIT License
1 stars 0 forks source link

Prototype Color Sensor #2

Closed gerth2 closed 4 years ago

gerth2 commented 4 years ago

Create a class which can do the following: 1) Periodically read the rev color sensor 2) Return an enum value indicating if the detected color is RED, YELLOW, GREEN, BLUE, or UNKNOWN

Integrate this class into the main robot.java code, and test on the test board. Evaluate the performance of the sensor and the detection algorithm in a variety of lighting conditions.

The goal is to understand if the rev sensor is a viable option, or if we should investigate an adafruit sensor.

imdunne8 commented 4 years ago

Based on Ri3D Capital's testing, green, blue, and yellow all work well from both sides of a piece of lexan. Bottom side needs the light on the sensor turned off to work best. Detecting red may require more tuning, but worst case we may need to buy a different sensor.

gerth2 commented 4 years ago

http://www.revrobotics.com/rev-31-1557/ here's the info on the sensor

Treecko120 commented 4 years ago

Finished... for now.