autonomous help

I’m a high school teacher completely new to the vex system and charged with giving kids some robot programming experience. I have a bunch of the PLTW sets, clawbots built sitting at the ready and robotC installed . . . I want to have kids program some clawbots to perform some automated tasks . . . IE navigate a line, pick up an object and bring it back to the start . . .The programming and logic is not the problem, we can write code, compile and download, troubleshoot etc. BUT If we write code in RObotC, and download it to a cortex, then disconnect the cortex from the USB AA cable, and set the clawbot on the ground, how do we get the clawbot to execute the code? I’m used to lego mindstorms where you could download, then hit a button on the RCX brick to initiate the program . . . I feel like there is some simple piece of how VEX operates that I’m missing . . .can anyone guide me thru?

To add, we’ve been successfully writing, downloading and running programs to the cortex’s for weeks via USB AA . . . but keeping them tethered to the computer . . . it is the disconnection piece I am asking about. . . .

To run programs on the Cortex (without any physical tether to the computer or VEXNet connection set up), you should have to simply turn the Cortex off and back on again. When the Cortex is turned on, it will start executing the program that is loaded on it immediately so you may need to put a small wait command (generally around a second or two, using the ‘wait1MSec(1000);’ command) at the beginning of the program to allow for fingers to get out of the way of the Cortex before it starts moving.

If turning the Cortex off and on does not launch the program, you may need to check the ‘Robot -> VEX Cortex Communication Mode’ to ‘USB Only’ to enable this type of program execution. Once this setting is changed you will need to redownload the program to the Cortex and power cycle it (turn it off and back on, with the USB cable detached) to save the changes to the Cortex internally.

For future coding questions, please feel free to post in either the ROBOTC Technical Support subform (https://vexforum.com/forumdisplay.php?f=286) or the Technical Discussion subform (https://vexforum.com/forumdisplay.php?f=28) as these are more geared for coding questions. Posts in the ROBOTC Tech Support subforum can only be answered by ROBOTC staff (such as myself) and posts in the Technical Discussion subforum can be answered by any VEX forum member. as these are more geared for coding questions. Posts in the ROBOTC Tech Support subforum can only be answered by ROBOTC staff (such as myself) and posts in the Technical Discussion subforum can be answered by any VEX forum member.)

Thank You so much for your help . . . I’ll give this a try today and let you know how I make out . . .