Skip to content

Commit

Permalink
Update StandaloneAppSamples RLIs and code for 2025 (#2956)
Browse files Browse the repository at this point in the history
* Update StandaloneAppSamples RLIs

* Manually update RLIs and code to work with 2025
  • Loading branch information
sciencewhiz authored Jan 22, 2025
1 parent 1fb0489 commit 97fadd8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/inspector.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
{
"baseUrl": "https://raw.githubusercontent.com/wpilibsuite/StandaloneAppSamples/",
"versionScheme": "v\\d{4}\\.\\d\\.\\d(?:-(?:alpha|beta)-\\d)?|[0-9a-f]{40}",
"latestVersion":"6a5b6352807a8759bd0f012e57695c47f7ef7324"
"latestVersion": "9020718b022ba220a2c5cc04ad12714d06e7a141"
}
],
"ignoredFiles": ["source/docs/software/commandbased/command-scheduler.rst", "source/docs/software/hardware-apis/pneumatics/pressure.rst", "source/docs/software/hardware-apis/pneumatics/solenoids.rst", "source/docs/software/advanced-controls/state-space/state-space-pose-estimators.rst", "source/docs/software/commandbased/subsystems.rst", "source/docs/software/telemetry/writing-sendable-classes.rst", "source/docs/software/advanced-controls/trajectories/troubleshooting.rst", "source/docs/software/hardware-apis/motors/wpi-drive-classes.rst", "source/docs/software/pathplanning/trajectory-tutorial/creating-drive-subsystem.rst", "source/docs/software/pathplanning/trajectory-tutorial/creating-following-trajectory.rst", "source/docs/software/pathplanning/trajectory-tutorial/entering-constants.rst", "source/docs/software/convenience-features/event-based.rst", "source/docs/software/dashboards/glass/field2d-widget.rst", "source/docs/software/dashboards/smartdashboard/choosing-an-autonomous-program-from-smartdashboard.rst"]
Expand Down
8 changes: 4 additions & 4 deletions source/docs/software/networktables/client-side-program.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ A basic client program looks like the following example.
WPIMathJNI.Helper.setExtractOnStaticLoad(false);
CameraServerJNI.Helper.setExtractOnStaticLoad(false);
CombinedRuntimeLoader.loadLibraries(Program.class, "wpiutiljni", "wpimathjni", "ntcorejni",
"cscorejnicvstatic");
Core.NATIVE_LIBRARY_NAME, "cscorejni");
new Program().run();
}
public void run() {
Expand All @@ -37,7 +37,7 @@ A basic client program looks like the following example.
DoubleSubscriber xSub = table.getDoubleTopic("x").subscribe(0.0);
DoubleSubscriber ySub = table.getDoubleTopic("y").subscribe(0.0);
inst.startClient4("example client");
inst.setServer("localhost"); // where TEAM=190, 294, etc, or use inst.setServer("hostname") or similar
inst.setServerTeam(TEAM); // where TEAM=190, 294, etc, or use inst.setServer("hostname") or similar
inst.startDSClient(); // recommended if running on DS computer; this gets the robot IP from the DS
while (true) {
try {
Expand Down Expand Up @@ -173,7 +173,7 @@ Example build.gradle files are provided in the [StandaloneAppSamples Repository]
.. tab-item:: Java
:sync: Java

.. rli:: https://raw.githubusercontent.com/wpilibsuite/StandaloneAppSamples/6a5b6352807a8759bd0f012e57695c47f7ef7324/Java/build.gradle
.. rli:: https://raw.githubusercontent.com/wpilibsuite/StandaloneAppSamples/9020718b022ba220a2c5cc04ad12714d06e7a141/Java/build.gradle
:language: groovy
:linenos:
:emphasize-lines: 5
Expand All @@ -183,7 +183,7 @@ Example build.gradle files are provided in the [StandaloneAppSamples Repository]

Uncomment the appropriate platform as highlighted.

.. rli:: https://raw.githubusercontent.com/wpilibsuite/StandaloneAppSamples/6a5b6352807a8759bd0f012e57695c47f7ef7324/Cpp/build.gradle
.. rli:: https://raw.githubusercontent.com/wpilibsuite/StandaloneAppSamples/9020718b022ba220a2c5cc04ad12714d06e7a141/Cpp/build.gradle
:language: groovy
:linenos:
:emphasize-lines: 3, 14-15, 20-22
Expand Down

0 comments on commit 97fadd8

Please sign in to comment.