Class SwerveState.Modules

java.lang.Object
org.team1126.lib.swerve.SwerveState.Modules
Enclosing class:
SwerveState

public static final class SwerveState.Modules extends Object
Contains information about swerve module states and positions.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final edu.wpi.first.math.kinematics.SwerveModuleState[]
    The last target states of the modules.
    final edu.wpi.first.math.kinematics.SwerveModuleState[]
    The next target states of the modules.
    final edu.wpi.first.math.kinematics.SwerveModulePosition[]
    The current measured module positions.
    final edu.wpi.first.math.kinematics.SwerveModuleState[]
    The current measured module states.
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • positions

      public final edu.wpi.first.math.kinematics.SwerveModulePosition[] positions
      The current measured module positions.
    • states

      public final edu.wpi.first.math.kinematics.SwerveModuleState[] states
      The current measured module states.
    • lastTarget

      public final edu.wpi.first.math.kinematics.SwerveModuleState[] lastTarget
      The last target states of the modules.
    • nextTarget

      public final edu.wpi.first.math.kinematics.SwerveModuleState[] nextTarget
      The next target states of the modules.