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.