Group 1, Day 4: Cindy, Eric, Kimberly, Kylie, Victoria
The problems left for us consisted mainly of programming, but we still encountered minor problems with the circuitry throughout the day. The program left to us by the previous group only ran the test once because it was stuck in the logic loops, and could not retest the light readings. The majority of the day was spent trying to modify that program by adding switches and loops after each color was read; however, this resulted in an extremely complex and unorganized program that was difficult to read, for both programmer and robot. With help from Professor Gray, we found a simpler program that would, rather than test for each color after reading a certain color, would continue in an infinite loop a test differentiating, highest to lowest, the color frequencies. So the program first tested whether or not the light would be greater than 30, which would indicate red; if it was not, then it tested whether or not the light was greater than 20, indicating yellow. Any light frequency under 20, but greater than 10, was assumed to be green. This proved to work almost all of the times, except when, at the end of the day, the light bulbs were beginning to dim and the light readings started to change. This was solved by changing the light bulbs and readjusting the program to fit those light frequency readings.