This is what our limit switch looks like:
https://encrypted-tbn3.gstatic.com/i...r0xYWMp2FzsgSw
We have one at the top of our robot that becomes closed when the arms hit it. We may or may not add one to the bottom of the robot for the same effect. We are using talon via PWM. The arms are controlled to go up and down with two separate buttons on a PS3 controller. We are using labview.
We haven't tested anything with the limit switch since we've not been able to complete the programming. The main problem is that we can't figure out how to combine the examples titled switch and limit switch. One appears to show both the begin and teleop stages, but the other only show teleop. We can't figure out how to allow our motor to stop when the switch is true.