Class SimSwerveDrivetrain.SimSwerveModule
java.lang.Object
com.ctre.phoenix6.mechanisms.swerve.SimSwerveDrivetrain.SimSwerveModule
- Enclosing class:
- SimSwerveDrivetrain
public class SimSwerveDrivetrain.SimSwerveModule extends Object
-
Field Summary
Fields Modifier and Type Field Description double
DriveFrictionVoltage
Voltage necessary for the drive motor to overcome frictiondouble
DriveGearing
Reference to steer gearing for updating CANcoderDCMotorSim
DriveMotor
Reference to motor simulation for drive motorboolean
DriveMotorInverted
Whether the drive motor is inverteddouble
SteerFrictionVoltage
Voltage necessary for the steer motor to overcome frictiondouble
SteerGearing
Reference to steer gearing for updating CANcoderDCMotorSim
SteerMotor
Reference to motor simulation for the steer motorboolean
SteerMotorInverted
Whether the steer motor is inverted -
Constructor Summary
Constructors Constructor Description SimSwerveModule(double steerGearing, double steerInertia, double steerFrictionVoltage, boolean steerMotorInverted, double driveGearing, double driveInertia, double driveFrictionVoltage, boolean driveMotorInverted)
-
Method Summary
-
Field Details
-
SteerMotor
Reference to motor simulation for the steer motor -
DriveMotor
Reference to motor simulation for drive motor -
SteerGearing
Reference to steer gearing for updating CANcoder -
DriveGearing
Reference to steer gearing for updating CANcoder -
SteerFrictionVoltage
Voltage necessary for the steer motor to overcome friction -
DriveFrictionVoltage
Voltage necessary for the drive motor to overcome friction -
SteerMotorInverted
Whether the steer motor is inverted -
DriveMotorInverted
Whether the drive motor is inverted
-
-
Constructor Details
-
SimSwerveModule
public SimSwerveModule(double steerGearing, double steerInertia, double steerFrictionVoltage, boolean steerMotorInverted, double driveGearing, double driveInertia, double driveFrictionVoltage, boolean driveMotorInverted)
-