Class SwerveModuleState
- java.lang.Object
 - 
- com.lightningrobotics.common.geometry.kinematics.swerve.SwerveModuleState
 
 
- 
- All Implemented Interfaces:
 java.lang.Comparable<SwerveModuleState>
public class SwerveModuleState extends java.lang.Object implements java.lang.Comparable<SwerveModuleState>
 
- 
- 
Constructor Summary
Constructors Constructor Description SwerveModuleState(double velocity, edu.wpi.first.math.geometry.Rotation2d angle) 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(SwerveModuleState o)static SwerveModuleStateoptimize(SwerveModuleState target, edu.wpi.first.math.geometry.Rotation2d currentRotation)java.lang.StringtoString() 
 - 
 
- 
- 
Method Detail
- 
optimize
public static SwerveModuleState optimize(SwerveModuleState target, edu.wpi.first.math.geometry.Rotation2d currentRotation)
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
- 
compareTo
public int compareTo(SwerveModuleState o)
- Specified by:
 compareToin interfacejava.lang.Comparable<SwerveModuleState>
 
 - 
 
 -