Project 04 – Labyrinth Challenge

Lesson Attachments

Start button and kill switch example

There’s no good way to end a main task from a subtask in VEXcode Pro.  In this first example, I’ve created a subtask to run what would normally be the main task.  I run that from the main task.  I can kill that task from another sub task.

Here’s another example of an emergency stop button.

This one constantly stops the motors, but it allows you to keep your main task commands in the main task (if that makes you feel better.)  Matt says this is a disgusting way of doing it, but it works. 🙂