Spinning 3 motors simultaneously for Driver Control

So I’m trying to get both intakes plus the spinning elevator system onto one set triggers. I am using VEXCode V5 Blocks, and need help on this. Is there possibly a way to do this?

I do this is RobotC with
if(VexRT(BtnLDown)==1)
{

setMotor(intake1,-100);
setMotor(intake2,-100);
setMotor(elevator,-100);

}
else
{

if(VexRT(BtnLUp)==1)
{

setMotor(intake1,100);
setMotor(intake2,100);
setMotor(elevator,100);

}
else
{

setMotor(intake1,0);
setMotor(intake2,0);
setMotor(elevator,0);

}

}

3 Likes

Whoa! @Ravenclaw7621 No need to make more than one topic for the same question. You can just post again on the same topic.



Oh wise and mighty @DRow, no mortal user could fix these threads.
image

Anyway, this should be a good solution for this particular programming problem I found on another thread. Same logic, just add an extra spin command for the extra motor.

5 Likes

Please use else if milo (or whatever it is in C)

Thanks!

Wait, I did though! (20 characters)

1 Like

Nah, you put an if inside of an else. There’s an actual command for that else if.

Isn’t progaminggramming epic?

4 Likes