Class SwerveModuleState2

  • All Implemented Interfaces:
    Comparable<edu.wpi.first.math.kinematics.SwerveModuleState>

    public class SwerveModuleState2
    extends edu.wpi.first.math.kinematics.SwerveModuleState
    Second order kinematics swerve module state.
    • Constructor Summary

      Constructors 
      Constructor Description
      SwerveModuleState2()
      Constructs a SwerveModuleState with zeros for speed and angle.
      SwerveModuleState2​(double speedMetersPerSecond, edu.wpi.first.math.geometry.Rotation2d angle, double omegaRadPerSecond)
      Constructs a SwerveModuleState.
    • Field Detail

      • speedMetersPerSecond

        public double speedMetersPerSecond
      • omegaRadPerSecond

        public double omegaRadPerSecond
        Rad per sec
      • angle

        public edu.wpi.first.math.geometry.Rotation2d angle
    • Constructor Detail

      • SwerveModuleState2

        public SwerveModuleState2()
        Constructs a SwerveModuleState with zeros for speed and angle.
      • SwerveModuleState2

        public SwerveModuleState2​(double speedMetersPerSecond,
                                  edu.wpi.first.math.geometry.Rotation2d angle,
                                  double omegaRadPerSecond)
        Constructs a SwerveModuleState.
        Parameters:
        speedMetersPerSecond - The speed of the wheel of the module.
        angle - The angle of the module.
        omegaRadPerSecond - The angular velocity of the module.