Skip to content

Commit 0e1efd3

Browse files
committed
Move Power Outputs to the top
These are more likely to be what the reader is looking for on this page.
1 parent e712ee3 commit 0e1efd3

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

programming/sr/power/index.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,6 @@ As there is only one power board, it is not accessed like a list like `motors` f
1313
R.power.something...
1414
~~~~~
1515

16-
[Battery Status](#battery) {#battery}
17-
-------
18-
19-
The power board can report both the battery voltage, in Volts, and the current being drawn from it, in Amps.
20-
You can access these values like so:
21-
22-
~~~~~ python
23-
# Print the battery voltage and current to the log
24-
print(R.power.battery.voltage, R.power.battery.current)
25-
~~~~~
26-
27-
A fully charged battery will measure 12.6V.
28-
The power board will turn off and signal a low battery at 10.2V.
29-
The discharge curve is roughly linear between 11.4V and 10.4V.
30-
31-
3216
[Power Outputs](#outputs) {#outputs}
3317
-------
3418

@@ -56,6 +40,22 @@ R.power.output[OUT_L0] = True
5640
An exception is raised if you try to set an output index which doesn't exist.
5741

5842

43+
[Battery Status](#battery) {#battery}
44+
-------
45+
46+
The power board can report both the battery voltage, in Volts, and the current being drawn from it, in Amps.
47+
You can access these values like so:
48+
49+
~~~~~ python
50+
# Print the battery voltage and current to the log
51+
print(R.power.battery.voltage, R.power.battery.current)
52+
~~~~~
53+
54+
A fully charged battery will measure 12.6V.
55+
The power board will turn off and signal a low battery at 10.2V.
56+
The discharge curve is roughly linear between 11.4V and 10.4V.
57+
58+
5959
[Beeping](#beeping) {#beeping}
6060
-------
6161

0 commit comments

Comments
 (0)