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 TypeFieldDescriptionFields 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.withStatorCurrentLimit(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
-
-
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.
-