Skip to content

Commit a870404

Browse files
committed
Make it clearer that code runs on the robot
1 parent f4bce51 commit a870404

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

programming/index.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,12 @@ title: Programming
77

88
# Programming Your Robot
99

10-
Robots built using the SR kit are programmed with [Python 3.11](https://www.python.org) which is made possible with a custom-built Python library, `sr.robot3`.
10+
Robots built using the SR kit are programmed with [Python 3.11](https://www.python.org) which is made possible with a custom-built Python library, `sr.robot3`, which is pre-installed on your robot.
1111
This library deals with talking to the boards and doing all the complicated bits so you can focus on the fun bits.
1212

1313
The [Robot API]({{ site.baseurl }}/programming/robot_api/) page has the details about this library.
1414
The other pages in this section contain all of the information you need to know to successfully code for your robot.
1515

16-
1716
## Learning python
1817

1918
Your robot is programmed in [Python](https://www.python.org), so to make your robot do things you will need at least a basic understanding of Python.
@@ -35,6 +34,9 @@ There are a number of tutorials out there which might help you to learn to progr
3534

3635
## Writing code
3736

38-
In order to develop the code for your robot, we recommend that you use a code editor.
37+
In order to develop the code for your robot, you will write it on your computer and then [transfer it to your robot]({{ site.baseurl }}/tutorials/getting_code_on_the_robot). Unlike other code you may be used to writing, you won't be able to run your robot code from your computer — it needs to be run on your robot.
38+
3939
A good code editor can provide you with features such as auto completion and syntax highlighting which will help you more easily write code.
4040
For suggestions of suitable editors, and how to set them up see the [Code Editors]({{ site.baseurl }}/tutorials/editors/) section.
41+
42+
Other than an editor to write the code, you don't need anything else to get started.

tutorials/getting_code_on_the_robot.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ title: Getting Code on the Robot
77

88
# Getting Code on the Robot
99

10+
For your robot to function, it needs some code to tell it what to do.
11+
This code will be written on your computer, but then needs to be transferred to your robot to execute it.
12+
1013
Getting your code on to the robot is quite simple.
1114
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.
1215
Upon plugging in the drive or starting up, the robot will run the `robot.py` file found in the root of the drive.

0 commit comments

Comments
 (0)