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 CANMotorControllerOutputConfig
CANMotorControllerOutputConfig.InversionType, CANMotorControllerOutputConfig.NeutralMode -
Field Summary
FieldsModifier and TypeFieldDescriptionorg.wpilib.units.measure.Currentintorg.wpilib.units.measure.Currentorg.wpilib.units.measure.Timeorg.wpilib.units.measure.CurrentFields inherited from class 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(org.wpilib.units.measure.Current statorCurrentLimit) Sets the continuous current limit for the motor controller's stator current.withSupplyCurrentLimit(org.wpilib.units.measure.Current continuousSupplyCurrentLimit, org.wpilib.units.measure.Current burstSupplyCurrentLimit, org.wpilib.units.measure.Time supplyCurrentBurstDuration) Sets the continuous current limit for the motor controller's supply current.
-
Field Details
-
statorCurrentLimit
public org.wpilib.units.measure.Current statorCurrentLimit -
supplyCurrentLimit
public org.wpilib.units.measure.Current supplyCurrentLimit -
burstSupplyCurrentLimit
public org.wpilib.units.measure.Current burstSupplyCurrentLimit -
supplyCurrentBurstDuration
public org.wpilib.units.measure.Time 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
public TalonFxMotorControllerOutputConfig withStatorCurrentLimit(org.wpilib.units.measure.Current statorCurrentLimit) Sets the continuous current limit for the motor controller's stator current. -
withSupplyCurrentLimit
public TalonFxMotorControllerOutputConfig withSupplyCurrentLimit(org.wpilib.units.measure.Current continuousSupplyCurrentLimit, org.wpilib.units.measure.Current burstSupplyCurrentLimit, org.wpilib.units.measure.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.
-