Skip to content

Commit c9c5d2a

Browse files
Merge pull request #301 from srobo/sr-robot3-coverall
Update a few old references to `sr.robot`
2 parents ad5f949 + 77e02f3 commit c9c5d2a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

programming/sr/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: SR Module
66
SR Module
77
=========
88

9-
Student Robotics has written a module — `sr.robot` — which is used to interface with the hardware.
9+
Student Robotics has written a module — `sr.robot3` — which is used to interface with the hardware.
1010
It handles all the low-level interactions so you don't have to.
1111
To set the output power of output 0 of the first motor board to -30%, for example, you would simply write:
1212

@@ -19,16 +19,16 @@ R.motors[0].m0.power = -30
1919
To gain access to all of this functionality, all you need to do is write:
2020

2121
~~~~~ python
22-
from sr.robot import *
22+
from sr.robot3 import *
2323
~~~~~
2424

2525
...at the top of your code (before you use any of its functionality, basically).
2626
This imports the Student Robotics module that we've written to interface with our hardware.
2727

28-
Then, within the `sr.robot` module, there is a `Robot` class that should be instantiated, as follows:
28+
Then, within the `sr.robot3` module, there is a `Robot` class that should be instantiated, as follows:
2929

3030
~~~~~ python
31-
from sr.robot import *
31+
from sr.robot3 import *
3232
R = Robot()
3333
~~~~~
3434

programming/sr/ruggeduinos/custom_firmware.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ Ruggeduino connected.
107107
You'll need the ID later, so it's best to save it into a variable:
108108

109109
~~~~~ python
110-
from sr.robot import *
110+
from sr.robot3 import *
111111

112112
RUGGEDUINO_ID = "752303138333517171B1" # Replace this with the actual ID
113113

@@ -132,7 +132,7 @@ You may wish to use pyserial to communicate with the Ruggeduino, in which case y
132132

133133
~~~~~ python
134134
import serial
135-
from sr.robot import *
135+
from sr.robot3 import *
136136

137137
RUGGEDUINO_ID = "752303138333517171B1"
138138

0 commit comments

Comments
 (0)