Skip to content

Commit

Permalink
Fix RLIs pointing to main (#2276) (#2284)
Browse files Browse the repository at this point in the history
Fixes build error do to line changes in main
  • Loading branch information
sciencewhiz committed Jul 14, 2023
1 parent a69de09 commit a22fc46
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions source/docs/software/telemetry/writing-sendable-classes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ For example, here is the implementation of ``initSendable`` from WPILib's ``Bang

.. group-tab:: Java

.. remoteliteralinclude:: https://raw.githubusercontent.com/wpilibsuite/allwpilib/main/wpimath/src/main/java/edu/wpi/first/math/controller/BangBangController.java
.. remoteliteralinclude:: https://raw.githubusercontent.com/wpilibsuite/allwpilib/v2023.4.3/wpimath/src/main/java/edu/wpi/first/math/controller/BangBangController.java
:language: java
:lines: 150-158
:linenos:
:lineno-start: 150

.. group-tab:: C++

.. remoteliteralinclude:: https://raw.githubusercontent.com/wpilibsuite/allwpilib/main/wpimath/src/main/native/cpp/controller/BangBangController.cpp
.. remoteliteralinclude:: https://raw.githubusercontent.com/wpilibsuite/allwpilib/v2023.4.3/wpimath/src/main/native/cpp/controller/BangBangController.cpp
:language: cpp
:lines: 58-72
:linenos:
Expand Down Expand Up @@ -54,18 +54,18 @@ To help users ensure safety when interfacing with dashboard values, ``SendableBu

.. group-tab:: Java

.. remoteliteralinclude:: https://raw.githubusercontent.com/wpilibsuite/allwpilib/main/wpilibj/src/main/java/edu/wpi/first/wpilibj/motorcontrol/PWMMotorController.java
.. remoteliteralinclude:: https://raw.githubusercontent.com/wpilibsuite/allwpilib/v2023.4.3/wpilibj/src/main/java/edu/wpi/first/wpilibj/motorcontrol/PWMMotorController.java
:language: java
:lines: 118-124
:linenos:
:lineno-start: 118

.. group-tab:: C++

.. remoteliteralinclude:: https://raw.githubusercontent.com/wpilibsuite/allwpilib/main/wpilibc/src/main/native/cpp/motorcontrol/PWMMotorController.cpp
.. remoteliteralinclude:: https://raw.githubusercontent.com/wpilibsuite/allwpilib/v2023.4.3/wpilibc/src/main/native/cpp/motorcontrol/PWMMotorController.cpp
:language: cpp
:lines: 54-60
:lines: 56-62
:linenos:
:lineno-start: 54
:lineno-start: 56

Additionally, users may call ``builder.setActuator(true)`` to mark any mechanism that might move as a result of ``Sendable`` input as an actuator. Currently, this is used by :ref:`Shuffleboard <docs/software/dashboards/shuffleboard/getting-started/shuffleboard-tour:Tour of Shuffleboard>` to disable actuator widgets when not in :ref:`LiveWindow <docs/controls-overviews/control-system-software:LiveWindow>` mode.
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

.. group-tab:: C++

.. rli:: https://raw.githubusercontent.com/wpilibsuite/allwpilib/main/wpilibcExamples/src/main/cpp/examples/QuickVision/cpp/Robot.cpp
.. rli:: https://raw.githubusercontent.com/wpilibsuite/allwpilib/v2023.4.3/wpilibcExamples/src/main/cpp/examples/QuickVision/cpp/Robot.cpp
:language: cpp
:lines: 7-8,16-18,20,25-31

Expand All @@ -43,7 +43,7 @@ In the following example a thread created in robotInit() gets the Camera Server

.. group-tab:: C++

.. rli:: https://raw.githubusercontent.com/wpilibsuite/allwpilib/main/wpilibcExamples/src/main/cpp/examples/IntermediateVision/cpp/Robot.cpp
.. rli:: https://raw.githubusercontent.com/wpilibsuite/allwpilib/v2023.4.3/wpilibcExamples/src/main/cpp/examples/IntermediateVision/cpp/Robot.cpp
:language: cpp
:lines: 5-20,23-56,58-61,63-64,69-76

Expand Down

0 comments on commit a22fc46

Please sign in to comment.