Skip to content

Commit b8dcea2

Browse files
committed
deploy: 6d8df23
0 parents  commit b8dcea2

File tree

83 files changed

+7849
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+7849
-0
lines changed

.buildinfo

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Sphinx build info version 1
2+
# This file records the configuration used when building these files. When it is not found, a full rebuild will be done.
3+
config: d0482c3bad0df5bc426f6e0996070d04
4+
tags: 645f666f9bcd5a90fca523b33c5a78b7

.doctrees/api.doctree

209 KB
Binary file not shown.

.doctrees/defaults.doctree

7.72 KB
Binary file not shown.

.doctrees/environment.pickle

2.5 MB
Binary file not shown.

.doctrees/examples.doctree

22 KB
Binary file not shown.

.doctrees/index.doctree

5.97 KB
Binary file not shown.

.doctrees/installation_check.doctree

3.12 KB
Binary file not shown.

.nojekyll

Whitespace-only changes.

_images/xrp-robot.jpg

75.8 KB
Loading

_sources/api.rst.txt

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
2+
.. If you created a package, create one automodule per module in the package.
3+
4+
.. If your library file(s) are nested in a directory (e.g. /adafruit_foo/foo.py)
5+
.. use this format as the module name: "adafruit_foo.foo"
6+
7+
API Reference
8+
=============
9+
10+
.. automodule:: XRPLib
11+
:members:
12+
:undoc-members:
13+
14+
Hardware
15+
--------
16+
17+
.. autoclass:: XRPLib.board.Board
18+
:members:
19+
:undoc-members:
20+
21+
.. autoclass:: XRPLib.motor.SinglePWMMotor
22+
:members:
23+
:undoc-members:
24+
25+
.. autoclass:: XRPLib.motor.DualPWMMotor
26+
:members:
27+
:undoc-members:
28+
29+
.. autoclass:: XRPLib.encoded_motor.EncodedMotor
30+
:members:
31+
:undoc-members:
32+
33+
.. autoclass:: XRPLib.motor_group.MotorGroup
34+
:members:
35+
:undoc-members:
36+
37+
.. autoclass:: XRPLib.differential_drive.DifferentialDrive
38+
:members:
39+
:undoc-members:
40+
41+
.. autoclass:: XRPLib.servo.Servo
42+
:members:
43+
:undoc-members:
44+
45+
Sensors
46+
-------
47+
48+
.. autoclass:: XRPLib.encoder.Encoder
49+
:members:
50+
:undoc-members:
51+
52+
.. autoclass:: XRPLib.imu.IMU
53+
:members:
54+
:undoc-members:
55+
56+
.. autoclass:: XRPLib.rangefinder.Rangefinder
57+
:members:
58+
:undoc-members:
59+
60+
.. autoclass:: XRPLib.reflectance.Reflectance
61+
:members:
62+
:undoc-members:
63+
64+
Miscellaneous
65+
-------------
66+
67+
.. autoclass:: XRPLib.controller.Controller
68+
:members:
69+
:undoc-members:
70+
71+
.. autoclass:: XRPLib.pid.PID
72+
:members:
73+
:undoc-members:
74+
:show-inheritance:
75+
76+
.. autoclass:: XRPLib.timeout.Timeout
77+
:members:
78+
:undoc-members:
79+
80+
.. autoclass:: XRPLib.webserver.Webserver
81+
:members:
82+
:undoc-members:

_sources/defaults.rst.txt

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
XRPLib.defaults
2+
---------------
3+
4+
In addition to you being able to construct any of the classes in XRPLib by
5+
themselves, you are also able to import all of the default objects needed for
6+
normal robot operations, using just one line.
7+
8+
By running ``from XRPLib.defaults import *``, you import all of the
9+
pre-constructed objects, as specified and named below:
10+
11+
.. literalinclude:: ../XRPLib/defaults.py
12+
:caption: ../XRPLib/defaults.py
13+
:linenos:
14+
15+
We use this import in most of the curriculum and example programs,
16+
which is why you will often see the DifferentialDrive class refered to as
17+
just "drivetrain".
18+
19+
Here's an example of that from ``drive_examples.py``:
20+
21+
>>> from XRPLib.defaults import *
22+
>>> # Follow the perimeter of a square with variable sidelength
23+
>>> def square(sidelength):
24+
>>> for sides in range(4):
25+
>>> drivetrain.straight(sidelength, 80)
26+
>>> drivetrain.turn(90)``

_sources/examples.rst.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Example Code
2+
------------
3+
4+
Feel free to read through, import, and use any of the below sample code:
5+
6+
.. literalinclude:: ../XRPExamples/drive_examples.py
7+
:caption: XRPExamples/drive_examples.py
8+
:linenos:
9+
10+
.. literalinclude:: ../XRPExamples/sensor_examples.py
11+
:caption: XRPExamples/sensor_examples.py
12+
:linenos:
13+
14+
.. literalinclude:: ../XRPExamples/led_example.py
15+
:caption: XRPExamples/led_example.py
16+
:linenos:
17+
18+
.. literalinclude:: ../XRPExamples/webserver_example.py
19+
:caption: XRPExamples/webserver_example.py
20+
:linenos:

_sources/index.rst.txt

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
XRPLib - Table of Contents
2+
==========================
3+
4+
.. image:: _static/xrp-robot.jpg
5+
:width: 50%
6+
7+
.. toctree::
8+
:maxdepth: 4
9+
:hidden:
10+
11+
self
12+
13+
.. toctree::
14+
:caption: Code Documentation
15+
:maxdepth: 3
16+
17+
api
18+
defaults
19+
20+
.. toctree::
21+
:caption: Examples
22+
23+
installation_check
24+
examples
25+
26+
.. toctree::
27+
:caption: Curriculum
28+
29+
XRP Curriculum <https://introtoroboticsv2.readthedocs.io>
30+
XRP User Guide <https://xrpusersguide.readthedocs.io/en/latest/course/introduction.html>
31+
XRPLib on GitHub <https://github.com/Open-STEM/XRP_MicroPython/releases/latest>
32+
XRP Support Forum <https://xrp.discourse.group>
33+
34+
.. toctree::
35+
:caption: Other Links
36+
37+
Download MicroPython <https://micropython.org/download/>
38+
MicroPython Reference Documentation <https://docs.micropython.org/en/latest/>
39+
MicroPython Support Forum <https://github.com/orgs/micropython/discussions>
40+
41+
Indices and tables
42+
==================
43+
44+
* :ref:`genindex`
45+
* :ref:`modindex`
46+
* :ref:`search`

_sources/installation_check.rst.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Installation Verification
2+
-------------------------
3+
4+
Ensure your device works with this simple test.
5+
6+
.. literalinclude:: ../Examples/installation_verification.py
7+
:caption: Examples/installation_verification.py
8+
:linenos:
9+

0 commit comments

Comments
 (0)