We’ve been having issues with our VeX IQ pneumatics. Our (simplified) code is a simple threaded loop that calls extend() and retract() on the pneumatics. However, sometimes our pneumatics simply stop working. I have confirmed with the console that the loop is still running, but the pneumatic solenoid isn’t firing. It doesn’t happen all the time, just sometimes randomly. If it does stop, the only way to fix it is power cycling the brain (restarting program or unplugging and plugging solenoid back in doesn’t work). It is not a cable issue since we have tried multiple cables with no luck and there is no “Device was disconnected” warning. We’ve tried multiple solenoids.
Here’s the code (python):
def pin_stuck_detect():
while True:
pneumatic_2.extend(CYLINDER1)
wait(0.2, SECONDS)
pneumatic_2.retract(CYLINDER1)
wait(200, MSEC)
pin_stuck_thread = Thread( pin_stuck_detect )
These are the only references to pneumatic_2.