Issues when programing pneumatics

So my team is using pneumatics for an expander, and we have been having some issues with the getting the code working. Our main issue is that the default state of the solenoid when the brain is on, is different to that of the default state when the brain is off. For example, when the brain is off or on its first startup the solenoid value is false, then when you enter the program its false, but when we exit the program (/ just anytime after the first program run) it changes to true.

We use pros and are currently just setting the value in the initialize function but we are wondering if there is a better way that would stop the issue of the piston firing when we exit the program.

Make sure your firmware is fully up to date. That helped us.

I noticed that it wasn’t up to date, but the issue was present even after updating.

so vexos is 1.1.2 ?
The pneumatics state when a program is stopped should be the same as when the brain is first turned on.

3 Likes

I had a similar problem and what worked for me was replacing the soleniod