Uses of Class
frc.robot.subsystems.swervedrive.swerve.SwerveMotor.ModuleMotorType
-
Packages that use SwerveMotor.ModuleMotorType Package Description frc.robot.subsystems.swervedrive.swerve frc.robot.subsystems.swervedrive.swerve.motors -
-
Uses of SwerveMotor.ModuleMotorType in frc.robot.subsystems.swervedrive.swerve
Fields in frc.robot.subsystems.swervedrive.swerve declared as SwerveMotor.ModuleMotorType Modifier and Type Field Description SwerveMotor.ModuleMotorTypeSwerveMotor. m_motorTypeModule motor type.Methods in frc.robot.subsystems.swervedrive.swerve that return SwerveMotor.ModuleMotorType Modifier and Type Method Description static SwerveMotor.ModuleMotorTypeSwerveMotor.ModuleMotorType. valueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static SwerveMotor.ModuleMotorType[]SwerveMotor.ModuleMotorType. values()Returns an array containing the constants of this enum type, in the order they are declared.Methods in frc.robot.subsystems.swervedrive.swerve with parameters of type SwerveMotor.ModuleMotorType Modifier and Type Method Description static <MotorType extends edu.wpi.first.wpilibj.motorcontrol.MotorController>
SwerveMotorSwerveMotor. fromMotor(MotorType motor, SwerveEncoder<?> absoluteEncoder, SwerveMotor.ModuleMotorType type, double gearRatio, double wheelDiameter, double freeSpeedRPM, double powerLimit)Constructor for Swerve Motor, expecting CANSparkMax or TalonFX.voidSwerveModule. setCurrentLimit(int currentLimit, SwerveMotor.ModuleMotorType type)Set the current limit for the swerve drive motor, remember this may cause jumping if used in conjunction with voltage compensation.voidSwerveDrive. setPIDF(double p, double i, double d, double f, double integralZone, SwerveMotor.ModuleMotorType moduleMotorType)Set the PIDF coefficients for the closed loop PID onboard the motor controller.voidSwerveModule. setPIDF(double p, double i, double d, double f, double integralZone, SwerveMotor.ModuleMotorType moduleMotorType)Set the PIDF coefficients for the closed loop PID onboard the motor controller. -
Uses of SwerveMotor.ModuleMotorType in frc.robot.subsystems.swervedrive.swerve.motors
Constructors in frc.robot.subsystems.swervedrive.swerve.motors with parameters of type SwerveMotor.ModuleMotorType Constructor Description CTRESwerveMotor(com.ctre.phoenix.motorcontrol.can.WPI_TalonFX motor, SwerveEncoder<?> encoder, SwerveMotor.ModuleMotorType type, double gearRatio, double wheelDiameter, double freeSpeedRPM, double powerLimit)REVSwerveMotor(com.revrobotics.CANSparkMax motor, SwerveEncoder<?> absoluteEncoder, SwerveMotor.ModuleMotorType type, double gearRatio, double wheelDiameter, double freeSpeedRPM, double powerLimit)Constructor for REV Swerve Motor, expecting CANSparkMax.
-