Package com.ctre.phoenix6.swerve
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
Reference to steer gearing for updating encoder -
SteerGearing
Reference to steer gearing for updating encoder -
DriveFrictionVoltage
Voltage necessary for the drive motor to overcome friction -
SteerFrictionVoltage
Voltage necessary for the steer motor to overcome friction -
DriveMotorInverted
Whether the drive motor is inverted -
SteerMotorInverted
Whether the steer motor is inverted -
EncoderInverted
Whether the azimuth encoder is inverted -
EncoderOffset
Offset 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)
-