PLTW Teacher here. We decided to get ahead of the game and upgrade to V5 now rather than buy legacy stuff as it gets phased out. Right now i’m trying to develop content for my students to start completing some of the PLTW projects. When we were using RobotC, as a requirement, I would typically have my students run an emergency stop loop as a concurrent task to their main code using the stopAllTasks function like the example below. :
I did this so that if their code didn’t work while disconnected from the computer they could hit a button near the outside of their system rather than try to power cycle the cortex. Basically the estop task would start at the beginning of the main task and loop alongside it, constantly checking for the estop bump switch. That way the code could do its thing without interruption and be killed if the estop was pressed.
My big question is how to perform a similar concurrent task in the VCS C++ pro where the concurrent task will constantly check for that bump switch and terminate the main task if it is pressed. Any help is good help.