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
  • Hardware
  • Wiring
  • Physical Components
  • Software
  • PathPlanner
  • Configuration

Was this helpful?

Edit on GitHub
  1. Configuring YAGSL

Swerve Drive Drift

Drift can be caused by anything and everything in a swerve drive...

Swerve drive drift has been a persistent problem for many years and there have been many discussions as to why it happens. This page will guide you through 3 categories of common causes of swerve drive drift. It is important to keep in mind that SEVERAL of these issues could be present in your robot.

Hardware

Wiring

Incorrect wiring can be further broken down into 3 categories for the swerve drive. These are the symptoms if the wiring is worn down, incorrectly routed, or broken some where (especially in connectors!)

Encoder

Motor Controller

Gyroscope/IMU

Physical Components

Magnetic Encoder

Motor

Swerve Module

Robot

Software

PathPlanner

Configuration

PreviousThe eight stepsNextSparkMAX Common Problems

Last updated 3 months ago

Was this helpful?

Use of

Use of

Use of

Use of

Use of

Use of

Use of

Use of

Use of

Use of

SwerveDrive.setCosineCompensator
SwerveDrive.setHeadingCorrection
SwerveModule.setAntiJitter
SwerveDrive.chassisVelocityCorrection
SwerveDrive.setMaximumSpeeds
SwerveDrive.replaceSwerveModuleFeedforward
SwerveDrive.setGyroOffset
SwerveDrive.updateCacheValidityPeriods
SwerveDrive.setOdometryPeriod
SwerveDrive.addVisionMeasurement
Translational axis changes with robot orientation.