VexCode IQ - Combining controller codes

Guys and Gals, we are new here so thanks in advance for support. We have found the “Controller Buttons” on the examples tab in VexCode IQ and the “Left Joystick” and we have been able to get both to run (Seperatly) on different programs but can’t seem to figure out how to combine the two into one program to fully customize our controller. We are ultimately trying to just program the arm to a slower speed. We are using two arm motors and two drive train motors so we figured how to reverse them, duplicate, and that you have to have the drain train separated rather then selecting drive train from the device tabs but can’t figure out how to combine the two in one. Any help would be much appreciated.

As always with code questions, step 1 is to load your code, step 2 is to tell us what it’s not doing.

Please load your code and we’ll take a look.

2 Likes

Of coarse, sorry all.image

The reason why it doesn’t work is because you are nesting two forever loops. You should just delete the second forever loop.

1 Like

Wow I thought we had tried that. Thank you, now I can explain all this to the kids so they can write their programs