Quote:
Originally Posted by BigJ
there is a subclass of Button called DigitalIOButton that should do what you want.
|
That is designed for a driver station digital i/o, not on the robot. To do it on the robot, it would not be hard to create a class to extend Button that reads from a digital i/o on the robot. Alternately, you could create an InternalButton object and periodically call the setPressed method with the state of the limit switch.