Set up AdvantageScope
AdvantageScope is a data visualization tool, courtesy of team 6328 Mechanical Advantage, which can visualize the swerve drive to give you feedback for debugging.
Opening
Since the 2024 season, AdvantageScope has been included with the WPILib installation. There is no external download required, but with every WPILib update you should re-download the WPILib installer to get the latest version of WPILib tools.
Configuring AdvantageScope
Connect your laptop to the robot.
Open
AdvantageScope (WPILib), or in VS Code open the command palette and typeWPILib: Start Tool, then clickAdvantageScope.Click
Help, thenShow Preferences.

Input the roboRIO IP address based on your team number:
10.TE.AM.2.

Connect to the robot (or the simulator).

Add a new tab by clicking the
+on the right side of the window.

Add a new 🦀 Swerve tab.

Drag in each of these
Mechanisms/swervefields under the Sources field:Mechanisms/swerve/states/currentMechanisms/swerve/states/desiredMechanisms/swerve/chassis/currentMechanisms/swerve/chassis/desired

To see the robot's pose on a 2D/3D field, add a 2D Field or 3D Field tab instead and drag in Mechanisms/swerve/pose.
Reading the display
Large, persistent gaps between the red and blue lines usually point to a tuning issue — see how to tune PIDF gains and swerve drive drift causes.
Last updated
Was this helpful?