How to install an Emergency Stop command Copy and paste this text into your RobotC code task estop () //defines the emergency stop task { while (true) { if (SensorValue [bumperSwitch] == 1) //make sure this is your extra switch, either bump or limit { StopAllTasks (); //this is the command that stops all tasks } waitInMilliseconds(10); } } task main() //this is your main program { StartTask (estop); //this is the command that starts the ‘estop’ task defined above while (true) { // insert your code here } }