YAGSL
  • Welcome to Yet Another Swerve Document
    • Resources
  • Overview
    • What we do
    • Our Features
      • Telemetry
      • Simulation
      • Lock Pose
      • Max Speed
      • Chassis Speed Discretization
      • Vision Odometry
      • Heading Correction
      • Auto-centering Modules
      • Offset Offloading
      • Cosine Compensation
      • Module Auto-synchronization
      • Angular Velocity Compensation
    • Changelog
    • Java API
    • Example Code
    • Config Generator
    • 💸Donations
    • 👕Merch
    • Discord
  • Fundamentals
    • Swerve Drive
    • Swerve Modules
  • Bringing up swerve
    • Preface
    • Swerve Information
    • Check your gyroscope
    • Check your motors
    • Creating your first configuration
  • Configuring YAGSL
    • Getting to know your robot
      • Gear Ratio
    • Dependency Installation
    • Configuration
      • Swerve Drive Configuration
      • Physical Properties Configuration
      • PIDF Properties Configuration
        • PIDF
      • Swerve Module Configuration
      • Controller Properties Configuration
      • Device Configuration
    • Code Setup
    • Standard Conversion Factors
    • How to tune PIDF
    • When to invert?
    • Flowcharts
    • The eight steps
    • Swerve Drive Drift
    • SparkMAX Common Problems
    • Verifying your Module Locations
    • Tuning out Drift
  • Devices
    • Gyroscope
      • NavX
      • Pigeon
      • Pigeon 2.0
      • ADXRS450
      • ADIS16448
      • ADIS16470
    • Motor Controllers
      • SparkMAX
      • SparkFlex
      • TalonFX
    • Absolute Encoders
  • Analytics and Debugging
    • FRC Web Components
    • Advantage Scope
  • Product Guides
    • Java API
    • PathPlanner
    • ❌Tuning PID with REV Hardware Client
    • ❌Drive Code
  • Legacy Documentation
Powered by GitBook
On this page
  • Opening
  • Configuring Advantage Scope
  • Overview

Was this helpful?

Edit on GitHub
  1. Analytics and Debugging

Advantage Scope

Advantage Scope is a data visualization tool, courtesy of team 6328 Mechanical Advantage, which can visualize the Swerve Drive to give you feedback for debugging.

PreviousFRC Web ComponentsNextTuning PID with REV Hardware Client

Last updated 1 year ago

Was this helpful?

Opening

Since the 2024 Season, has been included with the WPILib installation. There is no external download required, however with every WPILib update you should re-download the to get the latest version of WPILib tools.

Configuring Advantage Scope

  1. Connect laptop to robot

  2. Open AdvantageScope (WPILib) or in VS Code open the command palette and type in WPILib: Start Tool and click AdvantageScope

  3. Click Help then Show Preferences

  1. Input the roboRIO IP address based off of your team number. 10.TE.AM.2

  1. Connect to the robot (or the simulator)

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

  1. Connect the module states and rotation from Smart Dashboard to the Fields.

    1. Under the SmartDashboard/swerve menu drag the desiredStates into the States (Red) field.

    2. From the same menu drag the measuredStates into the States (Blue) field.

    3. From the same menu drag the robotRotation into the Robot Rotation field.

  1. Adjust the Data column to your Swerve Drive's properties.

    1. Under the Data column change the Max Speed field to the value of SmartDashboard/swerve/maxSpeed entry.

    2. Change the Rotation Units to match what the SmartDashboard/swerve/rotationUnit shows.

  1. (Optional) Adjust the Display column to accurately display your robot's chassis dimensions by changing the Size (Left-Right) and Size (Front-Back) to match what is under SmartDashboard/swerve/sizeLeftRight and SmartDashboard/swerve/sizeFrontBack

Overview

The BLUE lines are the measured velocity and position of the swerve module.

The RED lines is the velocity and position of the module sent!

Add a new Swerve tab

🦀
Advantage Scope
WPILib installer
Advantage Scope's help menu
roboRIO Address field highlighted
Connect to Robot menu
Add new tab
Swerve tab
Connecting data from network tables to the swerve fields
Change the swerve drive's data to match your robot
Change the swerve's display parameters to represent your robot's actual dimensions
Swerve Drivebase while in motion with an incorrect configuration. (Need to change this to an actual picture of Advantage Scope)