Getting Code on the Robot
Getting your code on to the robot is quite simple.
You will need to put your code on a USB drive
Which will need to be formatted with either FAT32, exFAT or ext2/3/4.
Upon plugging in the drive or starting up, the robot will run the robot.py
file found in the robot.zip
in the root of the drive.
Windows
- Open your code in File Explorer
- Select all of your code files (CtrlA to select all files)
- Right-click the files
- Click Compress to Zip file
- Name the newly created file
robot
(orrobot.zip
if you have file extentions shown)
If you are on Windows 10 or older, you will need to use Send to → Compressed (zipped) folder.
macOS
- Open your code in Finder
- Select all of your code files (⌘A to select all files)
- Right-click (or Control-click) the files and click Compress
- Name the newly created file
robot.zip
To re-run your program, simply remove the USB stick and plug it back in again and it will restart automatically.
Robot Logs
When your program runs on the robot, the output of print(...)
statements and
any errors which occur are written to a log file on the USB stick as log.txt
.