Unanswered Frc questions

I think everyone has has a question for another team that they could never figure out so I created a thread so you can ask it and maybe et a response. My question is for texas torque
I heard you guys had LED on your robot that would help you align your robot. How did you guys do this and do you an example of the code I can see?
Thanks.

2337 did something similar in 2012 - we had 3 LEDs on our robot (red green red) that helped us line up during set up. The LEDs worked like this:

Two outside red lights on: Can’t see a target
Only left red on: Robot is pointed far left from the target (move it right)
Left red and green on: Robot is just left from the target (move it right)
Green: Robot is on center

Same rules apply for the right red LED

You can find our code on GitHub here https://github.com/Team2337/2012ReboundRumble. If you use LabVIEW, check out VisionProcessing.vi

That is sort of right. The lights were used to tell us of our shooter was at the proper angle. We had a quadrature encoder on the tilt. We used an Arduino Uno that had four digital inputs and the programmer had to send a code of signals and the Arduino processed the light commands. Send me a pm with you email and I shall send you the code. Sorry this is so late, just found this today.