Programming of Vex Bumper Switch and Vex Limit Switch

Hello,

Our Team is using elevator to move our arms up and down. The platform runs on 4 chains. We were trying some different tests and we noticed that the chain fell off from the sprocket when going to high or 2 low. We decided to use some switches to make sure the platforms doesn’t go 2 far. We decided to use the Vex switches because they already have the PWM cables attached. We hooked them up to the ROBORIO, but our team does not really know how to program them.

Some help with this would be greatly appreciated.

Thanks in Advance.

Have you looked at the Limit Switch tutorial for Java?

I did run across it, but I noticed that the micro switches that FRC gave us, run through the Digital Input ports, though these Vex Switches run through the PWM ports.

I guess the real question is what is the object name for these switches?

Thank You anyway.