Class TalonFxMotorControllerOutputConfig
java.lang.Object
xbot.common.injection.electrical_contract.CANMotorControllerOutputConfig
xbot.common.injection.electrical_contract.TalonFxMotorControllerOutputConfig
Configuration class for Talon FX motor controllers.
-
Nested Class Summary
Nested classes/interfaces inherited from class xbot.common.injection.electrical_contract.CANMotorControllerOutputConfig
CANMotorControllerOutputConfig.InversionType, CANMotorControllerOutputConfig.NeutralMode -
Field Summary
FieldsModifier and TypeFieldDescriptionintFields inherited from class xbot.common.injection.electrical_contract.CANMotorControllerOutputConfig
inversionType, neutralMode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionwithInversionType(CANMotorControllerOutputConfig.InversionType inversionType) Sets the inversion type for the motor controller.Sets the neutral mode for the motor controller.withRemoteCanCoderFeedback(int canCoderDeviceId) Sets a CANCoder as the position source for the motorwithStatorCurrentLimit(Current statorCurrentLimit) Sets the continuous current limit for the motor controller's stator current.withSupplyCurrentLimit(Current continuousSupplyCurrentLimit, Current burstSupplyCurrentLimit, Time supplyCurrentBurstDuration) Sets the continuous current limit for the motor controller's supply current.
-
Field Details
-
statorCurrentLimit
-
supplyCurrentLimit
-
burstSupplyCurrentLimit
-
supplyCurrentBurstDuration
-
feedbackCanCoderDeviceId
public int feedbackCanCoderDeviceId
-
-
Constructor Details
-
TalonFxMotorControllerOutputConfig
public TalonFxMotorControllerOutputConfig()
-
-
Method Details
-
withInversionType
public TalonFxMotorControllerOutputConfig withInversionType(CANMotorControllerOutputConfig.InversionType inversionType) Description copied from class:CANMotorControllerOutputConfigSets the inversion type for the motor controller.- Overrides:
withInversionTypein classCANMotorControllerOutputConfig
-
withNeutralMode
public TalonFxMotorControllerOutputConfig withNeutralMode(CANMotorControllerOutputConfig.NeutralMode neutralMode) Description copied from class:CANMotorControllerOutputConfigSets the neutral mode for the motor controller.- Overrides:
withNeutralModein classCANMotorControllerOutputConfig
-
withStatorCurrentLimit
Sets the continuous current limit for the motor controller's stator current. -
withSupplyCurrentLimit
public TalonFxMotorControllerOutputConfig withSupplyCurrentLimit(Current continuousSupplyCurrentLimit, Current burstSupplyCurrentLimit, Time supplyCurrentBurstDuration) Sets the continuous current limit for the motor controller's supply current. -
withRemoteCanCoderFeedback
Sets a CANCoder as the position source for the motor- Parameters:
canCoderDeviceId- The CAN ID of the CANCoder to use as a remote sensor.
-