I am trying to wire up limit switches to pwm's so that our programmer can make it control if a solenoid can shoot or not. At the moment I have connected 2 limit switches to the front of a piece a metal so then the soccer ball hits it it will will release the soloenoid shooting out 2 pistons, this was a direct hook to the power. In turn we hooked up signal wire to the solonoids, in teleoperated mode we can manually shot off the pistons. Unfortunately the limit switches, that are now hooked to pwm ports 1 & 2, when they are tripped they do not set off the pistons, instead it resets the robot. It makes the robot glitch and move all the motors for a moment. Can anyone help me with my problem. I have tried re-wiring it but turned out to be unfruitful....
