Class SwerveModuleReal

java.lang.Object
frc.lib.util.swerve.SwerveModuleReal
All Implemented Interfaces:
SwerveModuleIO

public class SwerveModuleReal extends Object implements SwerveModuleIO
Swerve Module with real motors and sensors
  • Constructor Details

    • SwerveModuleReal

      public SwerveModuleReal(int moduleNumber, int driveMotorID, int angleMotorID, int cancoderID, Rotation2d angleOffset)
      A real Swerve Module with motors and sensors
      Parameters:
      moduleNumber - The Module Number
      driveMotorID - The Drive Motor CAN ID
      angleMotorID - The Angle Motor CAN ID
      cancoderID - The CANCode CAN ID
      angleOffset - The Angle Offset in Rotation2d
  • Method Details