I have two arm motors, and I don’t know how to make them go up at the same time with the same button

So our robot needs the 2 motors we have for the arm to go up at the same time, using the same controller button. I’ve been trying a bunch of different codes, but nothing seems to be working. I would greatly appreciate if someone could help me with this problem.

Welcome to the forums. What software are you using, and can you post your code so we can help you more?

In teleop, it would be something like this. Make sure one of your motors is reversed in the motor setup.

while (true)
{
  if(buttonEUp == 1)
  {
    setMotorSpeed(arm1,100);
    setMotorSpeed(arm2,100);
  }
}
1 Like

VEX Code Blocks would look like this:

image

1 Like