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

Was this helpful?

Edit on GitHub
  1. Configuring YAGSL

Getting to know your robot

PreviousCreating your first configurationNextDependency Installation

Last updated 10 months ago

Was this helpful?

Pre-requisite details to configure YAGSL

YAGSL is configured for your robot by YOU! We have example configurations which may or may not work for you. The pre-requisite details about your robot are set by through vendor clients and physical characteristics of your robot. Bellow is a near comprehensive list of features of your robot you must know before configuring YAGSL.

Feature
Typical Value
Relevance

Drive

N/A

The Drive Gear Ratio is the ratio describing how many times the drive motor shaft must rotate for the wheel to complete one rotation. This is usually available on the website of the Swerve Module purchased.

Steering

N/A

The Steering Gear Ratio is the ratio describing how many times the steering motor shaf1t must rotate for the wheel to complete one spin. This is usally available on the website of the Swerve Module purchased.

Absolute Encoder Ticks Per Revolution

1

CAN Bus Name

rio

If you are using a you may place CTRE devices such as the , , , and on that bus. You must .

CAN or PWM or Analog Input ID of every sensor and motor controller.

N/A

If this is incorrect it will cause major issue's because you will be controlling one motor thinking it's another!

Connection method for Gyroscope (NavX only)

N/A

If you are using a NavX over usb the device type should be navx_usb however if you are on the MXP please use navx_spi.

Inversion state of the motors

N/A

The inversion state needs to make the wheels go forward and spin clockwise.

Inversion state of the absolute encoder

false

Typically the absolute encoder will increase in value along with the steering motor movements, if this is not the case it needs to be changed!!!

Inversion state of the gyroscope

false

The gyroscope needs to be counter clockwise positive, if it isn't it needs to be inverted!

Absolute Encoder Offset

N/A

The absolute encoder offset is given when you straighten out all modules (facing the same way!) then read the value from the vendor client or from SmartDashboard while the robot is Disabled!

Motor Controller PID value's

N/A

Typical values are available in YAGSL-Example for NEO's and Falcon500's, however these may need to be further tuned. Ideally you can do this with the vendor client.

Distance in inches from the center of your robot to the center of each wheel.

N/A

This is used for while setting up your robot in YAGSL.

Gear Ratio
Gear Ratio
See here
CANivore
Falcon500
Kraken
Pigeon2.0
CANCoder
set this value to the name of your CANivore
SwerveDriveKinematics