Class TorqueSwerveModule
java.lang.Object
org.texastorque.torquelib.modules.base.TorqueSwerveModule
- Direct Known Subclasses:
TorqueSwerveModule2021
,TorqueSwerveModule2022
Swerve module base class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getPort()
abstract edu.wpi.first.math.geometry.Rotation2d
abstract edu.wpi.first.math.kinematics.SwerveModuleState
getState()
abstract void
setDesiredState
(edu.wpi.first.math.kinematics.SwerveModuleState state)
-
Field Details
-
id
protected final int id
-
-
Constructor Details
-
TorqueSwerveModule
protected TorqueSwerveModule(int id)
-
-
Method Details
-
getPort
public int getPort() -
setDesiredState
public abstract void setDesiredState(edu.wpi.first.math.kinematics.SwerveModuleState state) -
getState
public abstract edu.wpi.first.math.kinematics.SwerveModuleState getState() -
getRotation
public abstract edu.wpi.first.math.geometry.Rotation2d getRotation()
-