Log in

View Full Version : Limit Switch Code


dnrobotics11
13-02-2009, 14:53
What is the code for initializing and returning the value of a limit switch in the WindRiver language?

Would the code be the same for a jumper switch (used for immediate feedback depending on the alliance)?

Thank you very much.

Alan Anderson
13-02-2009, 15:05
Switches are switches. Just make a DigitalIn object and use its Get() method.

dnrobotics11
13-02-2009, 16:22
thanks a lot