E_Stop

I want to add a bumper switch to the top of my robot to end or stop the program. I am looking for the Vex Code required to end the program. I could sprinkle the program with a lot of “if E_Stop pressing”, but I just want a Panic Stop Button. I saw a reference “Using blocks there is no way to achieve this. With text there is, but it’s currently not exposed to the end user.” Were can I find and example of this code?
Is there an index or listing of all Vex Code commands?

You’d probably add a condition in your while loop (most programs have one) that checks if the button is being pressed.

Here’s Vexcode’s documentation:
https://api.vexcode.cloud/v5/html/

2 Likes

If there is a thread stop command that’s what you want. IDK if it exists in vexcode or not but I think it would.