Package swervelib.math
Class SwerveModuleState2
- java.lang.Object
-
- edu.wpi.first.math.kinematics.SwerveModuleState
-
- swervelib.math.SwerveModuleState2
-
- All Implemented Interfaces:
Comparable<edu.wpi.first.math.kinematics.SwerveModuleState>
public class SwerveModuleState2 extends edu.wpi.first.math.kinematics.SwerveModuleStateSecond order kinematics swerve module state.
-
-
Field Summary
Fields Modifier and Type Field Description edu.wpi.first.math.geometry.Rotation2dangledoubleomegaRadPerSecondRad per secdoublespeedMetersPerSecond
-
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.
-
-
-
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.
-
-