Closed gerth2 closed 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.
http://www.revrobotics.com/rev-31-1557/ here's the info on the sensor
Finished... for now.
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.