The solenoids on our bot default to the false state when the robot is powered off, but the true state when any code terminates. This happens regardless of the state of the solenoid when the code is terminated. Any solutions?
Here is code controlling the solenoids.
if (Controller1.ButtonR2.pressing()){
lift.set(true);
}
else {
lift.set(false);
}