I’m using the ez template in pros and I want to make one motor run on 2 different button. The reason for this is because one button runs the bottom stage and hood at the same time while another button runs just the bottom stage.
What I have for button L1 runs both at full speed and works but button Y it doe not run at full speed when it’s at 127.
If anyone knows how to get the bottom stage to run and full speed let me know. Any help is appreciated.
This is why we want to see all the code. I’ll guess that the 2 fragments you posted are in a loop. The first block sets the bottom to zero when it does not see the buttons pressed. A few lines later it gets set to 127. Then loop back, set to 0. Few lines set to 127. Lather, rinse, repeat.
Fix is to do all the buttons in the same set of code. Or write an explicit check for the buttons not being pressed to set the motor to zero.