Skip to content

Commit 6c0ee29

Browse files
committed
Style consistency
1 parent d3deba0 commit 6c0ee29

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

programming/motors.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ Each Motor Board can control two motors.
1111
See the [Motor Board](/docs/kit/motor_board) hardware page for more details.
1212

1313

14-
Accessing the Motor Board
15-
-------------------------
14+
[Accessing the Motor Board](#access_motor_power) {#access_motor_power}
15+
----------------------------------------------------------------------
1616

1717
If there is exactly one Motor Board connected to your robot, it can be accessed using the `motor_board` property of the `Robot` object.
1818

@@ -49,8 +49,8 @@ my_other_motor_board = robot.motor_boards["srXYZ1"]
4949
</div>
5050

5151

52-
Setting motor power
53-
-------------------
52+
[Setting motor power](#setting_motor_power) {#setting_motor_power}
53+
------------------------------------------------------------------
5454

5555
Control of your motors is achieved by setting a power output from one of the channels on your Motor Boards.
5656
Valid values are between -1 and 1 inclusive.
@@ -106,8 +106,9 @@ robot.motor_boards["srABC1"].motors[1].power = 0
106106
This will depend on how you have positioned your motors as well as how they have been wired to the Motor Board.
107107
</div>
108108

109-
Getting the current motor power
110-
-------------------------------
109+
110+
[Getting the current motor power](#current_motor_power) {#current_motor_power}
111+
------------------------------------------------------------------------------
111112

112113
You can read the current power value for a motor using the same field:
113114

@@ -116,8 +117,9 @@ You can read the current power value for a motor using the same field:
116117
print(robot.motor_boards["srABC1"].motors[0].power)
117118
~~~~~
118119

119-
Special Values
120-
--------------
120+
121+
[Special Values](#special_values) {#special_values}
122+
---------------------------------------------------
121123

122124
In addition to the numeric values, there are two special constants that can be used:
123125
- `BRAKE`
@@ -143,8 +145,8 @@ robot.motor_boards["srABC1"].motors[0].power = COAST
143145
~~~~~
144146

145147

146-
Motor currents
147-
--------------
148+
[Motor currents](#motor_currents) {#motor_currents}
149+
---------------------------------------------------
148150

149151
The Motor Board can also measure the current being drawn by each of the ports on the board.
150152
This value is measured in amps.

0 commit comments

Comments
 (0)