Class ModuleConstants

java.lang.Object
frc.robot.subsystems.swerve.mod.ModuleConstants

@NullMarked public class ModuleConstants extends Object
Per-module constants
  • Field Details

    • driveMotorId

      public final int driveMotorId
      CAN ID for the drive motor
    • angleMotorId

      public final int angleMotorId
      CAN ID for the angle motor
    • canCoderId

      public final int canCoderId
      CAN ID for the CANCoder
    • angleOffset

      public final Rotation2d angleOffset
      Reported angle when wheel is straight
  • Constructor Details

    • ModuleConstants

      public ModuleConstants(int driveMotorId, int angleMotorId, int canCoderId, Rotation2d angleOffset)
      Per-module constants