Uploading and Running code on the Robot
If you've already got some code you want to run on the robot, or you prefer to code in another application you'll need to follow these steps when uploading and running code on the robot. If not, we strongly recommend using the editor.
You should now see the upload interface.
Click on the Choose file button and select either:
- A single Python 2 source file
- A zip file containing one or more Python 2 source files. The file must contain a file named
main.pyin the root of the archive. This should be the entry point for the program.
Now click the Upload button to upload the selected file.
Uploading code will stop the robot if it is currently running.
If you're on the Upload page, click the run it from this page link. Otherwise, you can access the run page at http://robot.go/run or by clicking the green run button on the Shepherd homepage.
You should now see the run interface.
Choose the zone you'd like the robot to think it's in and then choose the mode. Development mode has no round timer meaning your code can run for as long as you need it to. Competition mode stops your code after 3 minutes, like it would in the arena.
Before you run your robot, make sure it's on the floor and NOT on a table!
When you're ready, press the big Start button.
You'll now be able to see what the robot sees and the output of your program below.