Class SimSwerveDrivetrain.SimSwerveModule
java.lang.Object
com.ctre.phoenix6.swerve.SimSwerveDrivetrain.SimSwerveModule
- Enclosing class:
SimSwerveDrivetrain
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal doubleVoltage necessary for the drive motor to overcome frictionfinal doubleReference to steer gearing for updating encoderfinal DCMotorSimReference to motor simulation for drive motorfinal booleanWhether the drive motor is invertedfinal booleanWhether the azimuth encoder is invertedfinal doubleOffset of the azimuth encoderThe type of encoder to use for the azimuthfinal doubleVoltage necessary for the steer motor to overcome frictionfinal doubleReference to steer gearing for updating encoderfinal DCMotorSimReference to motor simulation for the steer motorfinal booleanWhether the steer motor is inverted -
Constructor Summary
ConstructorsConstructorDescriptionSimSwerveModule(double driveGearing, double driveInertia, double driveFrictionVoltage, boolean driveMotorInverted, SwerveModuleConstants.DriveMotorArrangement driveMotorType, double steerGearing, double steerInertia, double steerFrictionVoltage, boolean steerMotorInverted, SwerveModuleConstants.SteerMotorArrangement steerMotorType, boolean encoderInverted, double encoderOffset, SwerveModuleConstants.SteerFeedbackType encoderType) -
Method Summary
-
Field Details
-
DriveMotor
Reference to motor simulation for drive motor -
SteerMotor
Reference to motor simulation for the steer motor -
DriveGearing
public final double DriveGearingReference to steer gearing for updating encoder -
SteerGearing
public final double SteerGearingReference to steer gearing for updating encoder -
DriveFrictionVoltage
public final double DriveFrictionVoltageVoltage necessary for the drive motor to overcome friction -
SteerFrictionVoltage
public final double SteerFrictionVoltageVoltage necessary for the steer motor to overcome friction -
DriveMotorInverted
public final boolean DriveMotorInvertedWhether the drive motor is inverted -
SteerMotorInverted
public final boolean SteerMotorInvertedWhether the steer motor is inverted -
EncoderInverted
public final boolean EncoderInvertedWhether the azimuth encoder is inverted -
EncoderOffset
public final double EncoderOffsetOffset of the azimuth encoder -
EncoderType
The type of encoder to use for the azimuth
-
-
Constructor Details
-
SimSwerveModule
public SimSwerveModule(double driveGearing, double driveInertia, double driveFrictionVoltage, boolean driveMotorInverted, SwerveModuleConstants.DriveMotorArrangement driveMotorType, double steerGearing, double steerInertia, double steerFrictionVoltage, boolean steerMotorInverted, SwerveModuleConstants.SteerMotorArrangement steerMotorType, boolean encoderInverted, double encoderOffset, SwerveModuleConstants.SteerFeedbackType encoderType)
-