Package com.stuypulse.robot.constants
Class Motors.TalonFXConfig
java.lang.Object
com.stuypulse.robot.constants.Motors.TalonFXConfig
- Enclosing interface:
- Motors
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(com.ctre.phoenix6.hardware.TalonFX motor) withCurrentLimitAmps(double currentLimitAmps) withFFConstants(double kS, double kV, double kA, double kG, int slot) withFFConstants(double kS, double kV, double kA, int slot) withGravityType(com.ctre.phoenix6.signals.GravityTypeValue gravityType) withInvertedValue(com.ctre.phoenix6.signals.InvertedValue invertedValue) withMotionProfile(double maxVelocity, double maxAcceleration) withNeutralMode(com.ctre.phoenix6.signals.NeutralModeValue neutralMode) withPIDConstants(double kP, double kI, double kD, int slot) withRampRate(double rampRate) withRemoteSensor(int ID, com.ctre.phoenix6.signals.FeedbackSensorSourceValue source, double rotorToSensorRatio) withSensorToMechanismRatio(double sensorToMechanismRatio) withSupplyCurrentLimitAmps(double currentLimitAmps)
-
Constructor Details
-
TalonFXConfig
public TalonFXConfig()
-
-
Method Details
-
configure
public void configure(com.ctre.phoenix6.hardware.TalonFX motor) -
withPIDConstants
-
withFFConstants
-
withFFConstants
-
withGravityType
-
withInvertedValue
public Motors.TalonFXConfig withInvertedValue(com.ctre.phoenix6.signals.InvertedValue invertedValue) -
withNeutralMode
-
withRampRate
-
withCurrentLimitAmps
-
withSupplyCurrentLimitAmps
-
withMotionProfile
-
withRemoteSensor
public Motors.TalonFXConfig withRemoteSensor(int ID, com.ctre.phoenix6.signals.FeedbackSensorSourceValue source, double rotorToSensorRatio) -
withSensorToMechanismRatio
-