Skip to content

Replace the AdvantageScope layout with a fresh 2026 export - #48

Merged
aschokking merged 3 commits into
mainfrom
remove-advantagescope-swerve-tab
Oct 10, 2026
Merged

aschokking merged 3 commits into
mainfrom
remove-advantagescope-swerve-tab

Conversation

@aschokking

@aschokking aschokking commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Replaces AdvantageScope_layout.json with a fresh export from AdvantageScope 2026, set up and tested against the XbotEdu simulator.

Why

The committed layout was saved by AdvantageScope 4.1.1 (July 2025). Imported into the WPILib 2026 build, AdvantageScope warns that the layout is old and only partially loads it: of the file's five tabs, only 2d top view came through. Console, Joysticks and Table never reached students. The file also carried a lot of the 2025 competition robot (see below).

What's in the new layout

Before After
AdvantageScope version 4.1.1 26.0.0
Tabs that load in 2026 2d top view 2d top view, 3D Field
Field 2025 Field (Welded) FRC:2026 Field
Data source PoseSubsystem/Location PoseSubsystem/Location, on both tabs

Both tabs read PoseSubsystem/Location, which XbotEdu logs at PoseSubsystem.java:43, so the robot shows up in both views as soon as the sim runs.

History on this branch

The first two commits hand-edited the old file. They removed a broken Swerve tab (it read DriveSubsystem/...SwerveState keys the swerve code never writes) and trimmed 82 sidebar entries for 2025 robot subsystems XbotEdu doesn't have (elevator, arms, AprilTag vision). Testing showed the old format barely loads in 2026, so the third commit replaces the file outright with the fresh export. The final file has none of the 2025 leftovers and no swerve content.

Squash-merging would give a single clean commit.

Testing (done)

Exported from a live AdvantageScope 2026 session connected to the XbotEdu simulator, with the robot showing in both views.

To double-check from a clean state: import AdvantageScope_layout.json. There should be no "old layout" warning, and you should see 2d top view and 3D Field on the 2026 field.

Related: Team488/Programming-Docs#21 updates the docs' simulator page to describe these two tabs. It should merge after this one.

🤖 Generated with Claude Code

The shared layout should cover what every student uses, and swerve is only
the final, optional Advanced challenge. That challenge already walks students
through building a Swerve tab themselves.

The tab was also broken. It read RealOutputs/DriveSubsystem/CurrentSwerveState
and .../DesiredSwerveState, but the swerve code logs from SwerveDriveSubsystem
(DriveSubsystem is the tank drive) and records DesiredSwerveStates, plural, so
it never showed any data.

The tab sat after the default selected tab (index 2, "3d view"), so removing it
does not change which tab opens first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sidebar.expanded records which folders were open in AdvantageScope's sidebar
when the layout was exported. This one was exported from a 2025 competition
robot session, so 82 of its 89 entries named subsystems XbotEdu doesn't have:
elevator, coral and algae arms, AprilTag vision, a filter subsystem, and the
competition robot's swerve modules.

Kept the 7 that apply to the drive challenges: PoseSubsystem, the scheduler
(which the Table tab reads), the Simulator folder (LinearEngine logs
Simulator/LinearEngine/*), and the top-level AdvantageKit folders.

The DriveSubsystem entries were removed too even though XbotEdu has a
DriveSubsystem: they were swerve-module paths (RearRightDrive/SteeringEncoder)
and PositionPID/HeadingPID from the competition drive, while XbotEdu's tank
DriveSubsystem has two motors and no PIDs.

Only the expanded list changes; the tabs are untouched.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@aschokking aschokking changed the title Remove the Swerve tab from the AdvantageScope layout Trim the AdvantageScope layout to what the drive curriculum uses Oct 10, 2026
The committed layout was saved by AdvantageScope 4.1.1 (July 2025). Opened
in the WPILib 2026 build it triggers an "old layout" warning and only
partially imports: of its five tabs, only 2d top view survived, so the
Console, Joysticks and Table tabs never reached students.

This is a fresh export from AdvantageScope 26.0.0, set up and tested against
the XbotEdu simulator:

- 2d top view and 3D Field, both reading PoseSubsystem/Location
- the 2026 field ("FRC:2026 Field") instead of the 2025 Reefscape field
- sidebar state limited to drive-relevant folders

Supersedes the hand edits in the previous two commits on this branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@aschokking aschokking changed the title Trim the AdvantageScope layout to what the drive curriculum uses Replace the AdvantageScope layout with a fresh 2026 export Oct 10, 2026
aschokking added a commit to Team488/Programming-Docs that referenced this pull request Oct 10, 2026
XbotEdu's layout is being replaced with a fresh AdvantageScope 2026 export
(Team488/XbotEdu#48). The old 4.1.1 file only partially imported in 2026 -
just 2d top view came through - and the new one deliberately ships two tabs:
2d top view and 3D Field, both on the 2026 field.

The tab table now lists just those two. The Joysticks, Table and Console rows
are gone, along with the troubleshooting tip that relied on the Joysticks tab;
it now points at the axis readout in the Robot Simulation window, which is
always available. Adds a short tip on finding raw logged values from the
sidebar instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@aschokking
aschokking merged commit 44ad06f into main Oct 10, 2026
1 check passed
@aschokking
aschokking deleted the remove-advantagescope-swerve-tab branch October 10, 2026 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant