Class TorqueSwerveModule

java.lang.Object
org.texastorque.torquelib.modules.base.TorqueSwerveModule
Direct Known Subclasses:
TorqueSwerveModule2021, TorqueSwerveModule2022

public abstract class TorqueSwerveModule extends Object
Swerve module base class
  • 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()