Skip to content

Commit

Permalink
Update Python RLIs for 2024.2.1.0 (#2556)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: github-actions <github-actions@github.com>
  • Loading branch information
sciencewhiz and github-actions committed Jan 24, 2024
1 parent 3268ce8 commit b9a383d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/inspector.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{
"baseUrl": "https://raw.githubusercontent.com/robotpy/examples/",
"versionScheme": "\\d{4}\\.\\d\\.\\d\\.\\d(?:-(?:alpha|beta)-\\d)?|[0-9a-f]{40}",
"latestVersion": "c6d0540b01e138725fad7366ff4e317e9994b78b"
"latestVersion": "86d7ba698fbb1489960690af4ee25d6c119dd463"
},
{
"baseUrl": "https://raw.githubusercontent.com/wpilibsuite/vscode-wpilib/",
Expand Down
10 changes: 5 additions & 5 deletions source/docs/software/basic-programming/robot-preferences.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ Initializing Preferences
.. tab-item:: Python
:sync: Python

.. rli:: https://raw.githubusercontent.com/robotpy/examples/c6d0540b01e138725fad7366ff4e317e9994b78b/ArmSimulation/constants.py
.. rli:: https://raw.githubusercontent.com/robotpy/examples/86d7ba698fbb1489960690af4ee25d6c119dd463/ArmSimulation/constants.py
:language: python
:lines: 18-23

.. rli:: https://raw.githubusercontent.com/robotpy/examples/c6d0540b01e138725fad7366ff4e317e9994b78b/ArmSimulation/subsytems/arm.py
.. rli:: https://raw.githubusercontent.com/robotpy/examples/86d7ba698fbb1489960690af4ee25d6c119dd463/ArmSimulation/subsytems/arm.py
:language: python
:lines: 20-23,37-41

Expand Down Expand Up @@ -72,7 +72,7 @@ Reading Preferences
.. tab-item:: Python
:sync: Python

.. rli:: https://raw.githubusercontent.com/robotpy/examples/c6d0540b01e138725fad7366ff4e317e9994b78b/ArmSimulation/subsytems/arm.py
.. rli:: https://raw.githubusercontent.com/robotpy/examples/86d7ba698fbb1489960690af4ee25d6c119dd463/ArmSimulation/subsytems/arm.py
:language: python
:lines: 43-50

Expand Down Expand Up @@ -105,10 +105,10 @@ Depending on the data that is stored in preferences, you can use it when you rea
.. tab-item:: Python
:sync: Python

.. rli:: https://raw.githubusercontent.com/robotpy/examples/c6d0540b01e138725fad7366ff4e317e9994b78b/ArmSimulation/robot.py
.. rli:: https://raw.githubusercontent.com/robotpy/examples/86d7ba698fbb1489960690af4ee25d6c119dd463/ArmSimulation/robot.py
:language: python
:lines: 22-28
.. rli:: https://raw.githubusercontent.com/robotpy/examples/c6d0540b01e138725fad7366ff4e317e9994b78b/ArmSimulation/subsytems/arm.py
.. rli:: https://raw.githubusercontent.com/robotpy/examples/86d7ba698fbb1489960690af4ee25d6c119dd463/ArmSimulation/subsytems/arm.py
:language: python
:lines: 52-57

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The following program starts automatic capture of a USB camera like the Microsof
:language: c++
:lines: 7-8, 16-18, 20, 25-31

.. rli:: https://raw.githubusercontent.com/robotpy/examples/c6d0540b01e138725fad7366ff4e317e9994b78b/QuickVision/robot.py
.. rli:: https://raw.githubusercontent.com/robotpy/examples/86d7ba698fbb1489960690af4ee25d6c119dd463/QuickVision/robot.py
:language: python
:lines: 8-17
:linenos:
Expand Down Expand Up @@ -73,14 +73,14 @@ In the following example a thread created in robotInit() gets the Camera Server

Here's what your ``robot.py`` needs to contain to launch the image processing process:

.. rli:: https://raw.githubusercontent.com/robotpy/examples/c6d0540b01e138725fad7366ff4e317e9994b78b/IntermediateVision/robot.py
.. rli:: https://raw.githubusercontent.com/robotpy/examples/86d7ba698fbb1489960690af4ee25d6c119dd463/IntermediateVision/robot.py
:language: python
:lines: 8-17
:linenos:

The ``launch("vision.py")`` function says to launch ``vision.py`` and call the ``run`` function in that file. Here's what is in ``vision.py``:

.. rli:: https://raw.githubusercontent.com/robotpy/examples/c6d0540b01e138725fad7366ff4e317e9994b78b/IntermediateVision/vision.py
.. rli:: https://raw.githubusercontent.com/robotpy/examples/86d7ba698fbb1489960690af4ee25d6c119dd463/IntermediateVision/vision.py
:language: python
:lines: 12-55
:linenos:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ Imports/Includes

.. tab-item:: Python

.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/c6d0540b01e138725fad7366ff4e317e9994b78b/GettingStarted/robot.py
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/86d7ba698fbb1489960690af4ee25d6c119dd463/GettingStarted/robot.py
:language: python
:lines: 8-9
:linenos:
Expand Down Expand Up @@ -436,7 +436,7 @@ Simple Autonomous Example
:linenos:
:lineno-start: 25
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/c6d0540b01e138725fad7366ff4e317e9994b78b/GettingStarted/robot.py
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/86d7ba698fbb1489960690af4ee25d6c119dd463/GettingStarted/robot.py
:language: python
:lines: 31-43
:linenos:
Expand All @@ -463,7 +463,7 @@ Joystick Control for Teleoperation
:linenos:
:lineno-start: 38
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/c6d0540b01e138725fad7366ff4e317e9994b78b/GettingStarted/robot.py
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/86d7ba698fbb1489960690af4ee25d6c119dd463/GettingStarted/robot.py
:language: python
:lines: 45-52
:linenos:
Expand All @@ -488,7 +488,7 @@ Test Mode
:linenos:
:lineno-start: 45
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/c6d0540b01e138725fad7366ff4e317e9994b78b/GettingStarted/robot.py
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/86d7ba698fbb1489960690af4ee25d6c119dd463/GettingStarted/robot.py
:language: python
:lines: 54-58
:linenos:
Expand Down

0 comments on commit b9a383d

Please sign in to comment.