Re: Programming an Emergency Shutdown
This is one of those rare instances (at least in this level of programming) where multitasking is a valid, efficient option. You can see a brief overview of ROBOTC's multitasking implementation here
(along with a rough psuedocode of the emergency stop button implementation) and an overview of all of the ROBOTC for Cortex multitasking commands here
You can also find an overview of the Task Status debugger window here
(useful to keep track of which tasks are being run any at any point in your program).
Check out our Blog
! And our Facebook page
Need help? Take a look at our updated help documentation
and the ROBOTC Forums.