@@ -13,22 +13,6 @@ As there is only one power board, it is not accessed like a list like `motors` f
13
13
R.power.something...
14
14
~~~~~
15
15
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
-
32
16
[ Power Outputs] ( #outputs ) {#outputs}
33
17
-------
34
18
@@ -56,6 +40,22 @@ R.power.output[OUT_L0] = True
56
40
An exception is raised if you try to set an output index which doesn't exist.
57
41
58
42
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
+
59
59
[ Beeping] ( #beeping ) {#beeping}
60
60
-------
61
61
0 commit comments