Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update StandaloneAppSamples RLIs and code for 2025 #2956

Merged
merged 2 commits into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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