VEXcode IQ - combining autonomous code to a controller code

My student wants to make a function that when the R Up button is pressed it plays a set of blocks (i.e. move forward, then move claw up, etc.).

We made a MyBlock to sum up the set of movements mentioned and then called it within our forever loop, but nothing happened after we downloaded it. We checked the Controller under Devices and couldn’t assign the R Up button to anything.

Liam Controller with Auto code

Did we do something wrong or is just not possible ?

Is it just button R?

2 Likes

Just use an event block instead. When button X is pressed, the blocks below it will run.

4 Likes

Use an if statement. If controller R up pressed, then execute the block you made.

1 Like