Skip to content

Commit ceb5422

Browse files
committed
Merge branch 'kjk/getting-code-on-robot'
2 parents 93abae1 + 239851e commit ceb5422

File tree

5 files changed

+42
-0
lines changed

5 files changed

+42
-0
lines changed

_data/sidebar_tree.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ tree:
3232
- url: /programming/
3333
title: Programming
3434
tree:
35+
- url: /programming/getting_code_on_the_robot
36+
title: Getting Code on the Robot
3537
- url: /programming/python/
3638
title: Python
3739
tree:

images/content/kit/zip_macOS.png

51.7 KB
Loading

images/content/kit/zip_win10.jpg

51 KB
Loading

images/content/kit/zip_win11.png

9.4 KB
Loading
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
layout: page
3+
title: Getting Code on the Robot
4+
---
5+
6+
# Getting Code on the Robot
7+
8+
Getting your code on to the robot is quite simple.
9+
You will need to put your code on a USB drive
10+
Which will need to be formatted with either FAT32, exFAT, NTFS or ext2/3/4.
11+
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.
12+
13+
## Windows
14+
15+
1. Open your code in File Explorer
16+
2. Select all of your code files (<kbd>Ctrl</kbd><kbd>A</kbd> to select all files)
17+
3. Right-click the files
18+
4. Click Compress to Zip file
19+
5. Name the newly created file `robot` (or `robot.zip` if you have file extentions shown)
20+
21+
<img src="{{ site.baseurl }}/images/content/kit/zip_win10.jpg" alt="Screenshot for Windows 10" class="column half" />
22+
<img src="{{ site.baseurl }}/images/content/kit/zip_win11.png" alt="Screenshot for Windows 11" class="column half" />
23+
24+
If you are on Windows 10 or older, you will need to use Send to &rarr; Compressed (zipped) folder.
25+
26+
## macOS
27+
28+
1. Open your code in Finder
29+
2. Select all of your code files (<kbd>⌘</kbd><kbd>A</kbd> to select all files)
30+
3. Right-click (or Control-click) the files and click Compress
31+
4. Name the newly created file `robot.zip`
32+
33+
![Screenshot]({{ site.baseurl }}/images/content/kit/zip_macOS.png)
34+
35+
To re-run your program, simply remove the USB stick and plug it back in again and it will restart automatically.
36+
37+
## Robot Logs
38+
39+
When your program runs on the robot, the output of `print(...)` calls and any
40+
errors which occur are written to a log file on the USB stick as `log.txt`.

0 commit comments

Comments
 (0)