We are having issues with our code on programming the joysticks. When we press the button our solenoids switch but sometimes they will switch right back. The Dashboard shows that they switch and then switch back sometimes. So I know they are opening. Any suggestions. Here is the code we are using
Code:
if(js2.getRawButton(3) == true && j2b3 == false){
s1.changeSolenoid(a1, a1End);
s2.changeSolenoid(a2, a2End);
j2b2 = true;
}
else{
j2b2 = false;
}