R1 and R2 control both intakes

So we have been looking to make the intakes we have to be able to be controlled by the buttons R1 and R2. What would the code be for this on VEX V5 textcode?

What the motors are named

left_intake
Right_intake

while R1 pressing{
turn leftIntake fwd
turnRightIntake fwd
}

while R2 pressing{
turn LeftIntake rev
turn RightIntake rev
}

1 Like