Skip to content

Commit a75ea47

Browse files
sciencewhizgithub-actions
andauthored
Update python example RLIs (#3020)
* Update python example RLIs * Autofix RLIs --------- Co-authored-by: github-actions <[email protected]>
1 parent 75b907f commit a75ea47

File tree

10 files changed

+29
-29
lines changed

10 files changed

+29
-29
lines changed

.github/workflows/inspector.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
{
1414
"baseUrl": "https://raw.githubusercontent.com/robotpy/examples/",
1515
"versionScheme": "\\d{4}\\.\\d\\.\\d\\.\\d(?:-(?:alpha|beta)-\\d)?|[0-9a-f]{40}",
16-
"latestVersion": "4e7b525b47246e55ad617a66f2c3d9fda34484a3"
16+
"latestVersion": "242924b3843fdcc6efc2cefa8eac7bfff8b6bc48"
1717
},
1818
{
1919
"baseUrl": "https://raw.githubusercontent.com/wpilibsuite/vscode-wpilib/",

source/docs/contributing/frc-docs/style-guide.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ When possible, instead of using code blocks, an RLI should be used. This pulls
111111
:lines: 50-60
112112
:lineno-match:
113113
114-
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/4e7b525b47246e55ad617a66f2c3d9fda34484a3/GettingStarted/robot.py
114+
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/242924b3843fdcc6efc2cefa8eac7bfff8b6bc48/GettingStarted/robot.py
115115
:language: python
116116
:lines: 12-29
117117
:lineno-match:

source/docs/software/advanced-controls/controllers/profiled-pidcontroller.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ A more complete example of ``ProfiledPIDController`` usage is provided in the El
153153
:lines: 5-
154154
:lineno-match:
155155

156-
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/4e7b525b47246e55ad617a66f2c3d9fda34484a3/ElevatorProfiledPID/robot.py
156+
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/242924b3843fdcc6efc2cefa8eac7bfff8b6bc48/ElevatorProfiledPID/robot.py
157157
:language: python
158158
:lines: 8-
159159
:lineno-match:

source/docs/software/advanced-controls/controllers/trapezoidal-profiles.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ A more complete example of ``TrapezoidProfile`` usage is provided in the Elevato
172172
:lines: 5-
173173
:lineno-match:
174174

175-
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/4e7b525b47246e55ad617a66f2c3d9fda34484a3/ElevatorTrapezoidProfile/robot.py
175+
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/242924b3843fdcc6efc2cefa8eac7bfff8b6bc48/ElevatorTrapezoidProfile/robot.py
176176
:language: python
177177
:lines: 8-
178178
:lineno-match:

source/docs/software/advanced-controls/state-space/state-space-flywheel-walkthrough.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,12 @@ The ``LinearSystem`` class contains methods for easily creating state-space syst
8686

8787
.. tab-item:: Python
8888

89-
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/4e7b525b47246e55ad617a66f2c3d9fda34484a3/StateSpaceFlywheelSysId/robot.py
89+
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/242924b3843fdcc6efc2cefa8eac7bfff8b6bc48/StateSpaceFlywheelSysId/robot.py
9090
:language: python
9191
:lines: 23-27
9292
:lineno-match:
9393

94-
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/4e7b525b47246e55ad617a66f2c3d9fda34484a3/StateSpaceFlywheelSysId/robot.py
94+
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/242924b3843fdcc6efc2cefa8eac7bfff8b6bc48/StateSpaceFlywheelSysId/robot.py
9595
:language: python
9696
:lines: 37-48
9797
:lineno-match:
@@ -133,12 +133,12 @@ The ``LinearSystem`` class contains methods to easily create a model of a flywhe
133133
.. tab-item:: Python
134134
:sync: python
135135

136-
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/4e7b525b47246e55ad617a66f2c3d9fda34484a3/StateSpaceFlywheel/robot.py
136+
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/242924b3843fdcc6efc2cefa8eac7bfff8b6bc48/StateSpaceFlywheel/robot.py
137137
:language: python
138138
:lines: 22-26
139139
:lineno-match:
140140

141-
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/4e7b525b47246e55ad617a66f2c3d9fda34484a3/StateSpaceFlywheel/robot.py
141+
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/242924b3843fdcc6efc2cefa8eac7bfff8b6bc48/StateSpaceFlywheel/robot.py
142142
:language: python
143143
:lines: 38-47
144144
:lineno-match:
@@ -182,7 +182,7 @@ Because the feedback controller computes error using the :term:`x-hat` estimated
182182
.. tab-item:: Python
183183
:sync: python
184184

185-
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/4e7b525b47246e55ad617a66f2c3d9fda34484a3/StateSpaceFlywheel/robot.py
185+
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/242924b3843fdcc6efc2cefa8eac7bfff8b6bc48/StateSpaceFlywheel/robot.py
186186
:language: python
187187
:lines: 49-55
188188
:lineno-match:
@@ -223,7 +223,7 @@ Much like ``SimpleMotorFeedforward`` can be used to generate feedforward voltage
223223
.. tab-item:: Python
224224
:sync: python
225225

226-
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/4e7b525b47246e55ad617a66f2c3d9fda34484a3/StateSpaceFlywheel/robot.py
226+
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/242924b3843fdcc6efc2cefa8eac7bfff8b6bc48/StateSpaceFlywheel/robot.py
227227
:language: python
228228
:lines: 57-67
229229
:lineno-match:
@@ -258,7 +258,7 @@ LinearSystemLoop combines our system, controller, and observer that we created e
258258
.. tab-item:: Python
259259
:sync: python
260260

261-
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/4e7b525b47246e55ad617a66f2c3d9fda34484a3/StateSpaceFlywheel/robot.py
261+
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/242924b3843fdcc6efc2cefa8eac7bfff8b6bc48/StateSpaceFlywheel/robot.py
262262
:language: python
263263
:lines: 69-72
264264
:lineno-match:
@@ -291,7 +291,7 @@ Once we have our ``LinearSystemLoop``, the only thing left to do is actually run
291291
.. tab-item:: Python
292292
:sync: python
293293

294-
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/4e7b525b47246e55ad617a66f2c3d9fda34484a3/StateSpaceFlywheel/robot.py
294+
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/242924b3843fdcc6efc2cefa8eac7bfff8b6bc48/StateSpaceFlywheel/robot.py
295295
:language: python
296296
:lines: 88-110
297297
:lineno-match:

source/docs/software/advanced-controls/state-space/state-space-observers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ WPILib's Kalman Filter classes' constructors take a linear system, a vector of p
110110

111111
.. tab-item:: Python
112112

113-
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/4e7b525b47246e55ad617a66f2c3d9fda34484a3/StateSpaceFlywheel/robot.py
113+
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/242924b3843fdcc6efc2cefa8eac7bfff8b6bc48/StateSpaceFlywheel/robot.py
114114
:language: python
115115
:lines: 49-55
116116
:lineno-match:

source/docs/software/basic-programming/robot-preferences.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ This example shows how to utilize Preferences to change the setpoint of a PID co
3434
.. tab-item:: Python
3535
:sync: Python
3636

37-
.. rli:: https://raw.githubusercontent.com/robotpy/examples/4e7b525b47246e55ad617a66f2c3d9fda34484a3/ArmSimulation/constants.py
37+
.. rli:: https://raw.githubusercontent.com/robotpy/examples/242924b3843fdcc6efc2cefa8eac7bfff8b6bc48/ArmSimulation/constants.py
3838
:language: python
3939
:lines: 18-23
4040

41-
.. rli:: https://raw.githubusercontent.com/robotpy/examples/4e7b525b47246e55ad617a66f2c3d9fda34484a3/ArmSimulation/subsytems/arm.py
41+
.. rli:: https://raw.githubusercontent.com/robotpy/examples/242924b3843fdcc6efc2cefa8eac7bfff8b6bc48/ArmSimulation/subsytems/arm.py
4242
:language: python
4343
:lines: 20-23,37-41
4444

@@ -69,7 +69,7 @@ If using the Command Framework, this type of code could be placed in the constru
6969
.. tab-item:: Python
7070
:sync: Python
7171

72-
.. rli:: https://raw.githubusercontent.com/robotpy/examples/4e7b525b47246e55ad617a66f2c3d9fda34484a3/ArmSimulation/subsytems/arm.py
72+
.. rli:: https://raw.githubusercontent.com/robotpy/examples/242924b3843fdcc6efc2cefa8eac7bfff8b6bc48/ArmSimulation/subsytems/arm.py
7373
:language: python
7474
:lines: 43-50
7575

@@ -102,10 +102,10 @@ Depending on the data that is stored in preferences, you can use it when you rea
102102
.. tab-item:: Python
103103
:sync: Python
104104

105-
.. rli:: https://raw.githubusercontent.com/robotpy/examples/4e7b525b47246e55ad617a66f2c3d9fda34484a3/ArmSimulation/robot.py
105+
.. rli:: https://raw.githubusercontent.com/robotpy/examples/242924b3843fdcc6efc2cefa8eac7bfff8b6bc48/ArmSimulation/robot.py
106106
:language: python
107107
:lines: 22-28
108-
.. rli:: https://raw.githubusercontent.com/robotpy/examples/4e7b525b47246e55ad617a66f2c3d9fda34484a3/ArmSimulation/subsytems/arm.py
108+
.. rli:: https://raw.githubusercontent.com/robotpy/examples/242924b3843fdcc6efc2cefa8eac7bfff8b6bc48/ArmSimulation/subsytems/arm.py
109109
:language: python
110110
:lines: 52-57
111111

source/docs/software/can-devices/power-distribution-module.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Note: it is not necessary to create a PowerDistribution object unless you need t
4242
:language: c++
4343
:lines: 28-31
4444

45-
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/4e7b525b47246e55ad617a66f2c3d9fda34484a3/CANPDP/robot.py
45+
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/242924b3843fdcc6efc2cefa8eac7bfff8b6bc48/CANPDP/robot.py
4646
:language: python
4747
:lines: 34-37
4848

@@ -61,7 +61,7 @@ Monitoring the bus voltage can be useful for (among other things) detecting when
6161
:language: c++
6262
:lines: 33-35
6363

64-
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/4e7b525b47246e55ad617a66f2c3d9fda34484a3/CANPDP/robot.py
64+
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/242924b3843fdcc6efc2cefa8eac7bfff8b6bc48/CANPDP/robot.py
6565
:language: python
6666
:lines: 39-41
6767

@@ -80,7 +80,7 @@ Monitoring the temperature can be useful for detecting if the robot has been dra
8080
:language: c++
8181
:lines: 37-49
8282

83-
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/4e7b525b47246e55ad617a66f2c3d9fda34484a3/CANPDP/robot.py
83+
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/242924b3843fdcc6efc2cefa8eac7bfff8b6bc48/CANPDP/robot.py
8484
:language: python
8585
:lines: 43-55
8686

@@ -101,7 +101,7 @@ The PDP/PDH also allows users to monitor the current drawn by the individual dev
101101
:language: c++
102102
:lines: 22-26
103103

104-
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/4e7b525b47246e55ad617a66f2c3d9fda34484a3/CANPDP/robot.py
104+
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/242924b3843fdcc6efc2cefa8eac7bfff8b6bc48/CANPDP/robot.py
105105
:language: python
106106
:lines: 28-32
107107

source/docs/software/vision-processing/roborio/using-the-cameraserver-on-the-roborio.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The following program starts automatic capture of a USB camera like the Microsof
1818
:language: c++
1919
:lines: 7-8, 16-18, 20, 25-31
2020

21-
.. rli:: https://raw.githubusercontent.com/robotpy/examples/4e7b525b47246e55ad617a66f2c3d9fda34484a3/QuickVision/robot.py
21+
.. rli:: https://raw.githubusercontent.com/robotpy/examples/242924b3843fdcc6efc2cefa8eac7bfff8b6bc48/QuickVision/robot.py
2222
:language: python
2323
:lines: 8-20
2424
:linenos:
@@ -69,14 +69,14 @@ In the following example a thread created in ``Robot`` constructor gets the Came
6969

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

72-
.. rli:: https://raw.githubusercontent.com/robotpy/examples/4e7b525b47246e55ad617a66f2c3d9fda34484a3/IntermediateVision/robot.py
72+
.. rli:: https://raw.githubusercontent.com/robotpy/examples/242924b3843fdcc6efc2cefa8eac7bfff8b6bc48/IntermediateVision/robot.py
7373
:language: python
7474
:lines: 8-17
7575
:linenos:
7676

7777
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``:
7878

79-
.. rli:: https://raw.githubusercontent.com/robotpy/examples/4e7b525b47246e55ad617a66f2c3d9fda34484a3/IntermediateVision/vision.py
79+
.. rli:: https://raw.githubusercontent.com/robotpy/examples/242924b3843fdcc6efc2cefa8eac7bfff8b6bc48/IntermediateVision/vision.py
8080
:language: python
8181
:lines: 12-55
8282
:linenos:

source/docs/zero-to-robot/step-4/creating-test-drivetrain-program-cpp-java-python.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ Now let's look at various parts of the code.
148148

149149
.. tab-item:: Python
150150

151-
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/4e7b525b47246e55ad617a66f2c3d9fda34484a3/GettingStarted/robot.py
151+
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/242924b3843fdcc6efc2cefa8eac7bfff8b6bc48/GettingStarted/robot.py
152152
:language: python
153153
:lines: 8-9
154154
:lineno-match:
@@ -496,7 +496,7 @@ The ``Robot`` constructor for our sample program inverts the right side of the d
496496
:lines: 25-36
497497
:lineno-match:
498498

499-
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/4e7b525b47246e55ad617a66f2c3d9fda34484a3/GettingStarted/robot.py
499+
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/242924b3843fdcc6efc2cefa8eac7bfff8b6bc48/GettingStarted/robot.py
500500
:language: python
501501
:lines: 31-43
502502
:lineno-match:
@@ -519,7 +519,7 @@ The ``AutonomousInit`` method is run once each time the robot transitions to aut
519519
:lines: 38-45
520520
:lineno-match:
521521

522-
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/4e7b525b47246e55ad617a66f2c3d9fda34484a3/GettingStarted/robot.py
522+
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/242924b3843fdcc6efc2cefa8eac7bfff8b6bc48/GettingStarted/robot.py
523523
:language: python
524524
:lines: 45-52
525525
:lineno-match:
@@ -540,7 +540,7 @@ Like in Autonomous, the Teleop mode has a ``TeleopInit`` and ``TeleopPeriodic``
540540
:lines: 45-48
541541
:lineno-match:
542542

543-
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/4e7b525b47246e55ad617a66f2c3d9fda34484a3/GettingStarted/robot.py
543+
.. remoteliteralinclude:: https://raw.githubusercontent.com/robotpy/examples/242924b3843fdcc6efc2cefa8eac7bfff8b6bc48/GettingStarted/robot.py
544544
:language: python
545545
:lines: 54-58
546546
:lineno-match:

0 commit comments

Comments
 (0)