Quote:
Originally Posted by Un Luchador
What does this gadget accomplish?
|
Well, as suggested in my previous post, we made the visible light sensor to use instead of the IR sensor in hybrid mode. We used 4 sensors spread apart in a diamond pattern on the back of the robot and handed a 2 million candle power flash light to our robocoach. The sensor module would detect whether a light sensor was receiving a signal then pass it along to its respective analog port (as described above). In accordance to the rules, the robot would respond in a repeatable manner to each sensor. We weren't super ambitious as our programmer mentor (not me this year) was reluctant to make use of the full array of sensors we had installed. So in default, our robot attempted to run laps. One light sensor said "continue autonomous", another said "strafe right", third "strafe left", and the last "pause autonomous".
Problems we had:
Field lighting was brighter than pit lighting, so we had some trouble adjusting the sensitivity of the sensors. In a few practice matches the robot would begin OK then apparently drive to a slightly brighter portion of the field and begin strafing left and right. By qualifying matches we had the sensitivity adjusted fairly well except for one match. Normally we wanted to start with the robot against the Robocoach fence, but in one match we started against the driver station wall closest to the lane divider line. Evidently light reflected off the diamond plate and hit the strafe left sensor, so our robot promptly violated G22 before the Robocoach was able to give it a pause signal.