Class TalonFXConfiguration
- All Implemented Interfaces:
ParentConfiguration
,ISerializable
public class TalonFXConfiguration extends Object implements ParentConfiguration
TalonFX
-
Field Summary
Fields Modifier and Type Field Description AudioConfigs
Audio
Configs that directly affect motor-output.ClosedLoopGeneralConfigs
ClosedLoopGeneral
Configs that affect general behavior during closed-looping.ClosedLoopRampsConfigs
ClosedLoopRamps
Configs that directly affect motor-output.CurrentLimitsConfigs
CurrentLimits
Configs that directly affect current limiting features.CustomParamsConfigs
CustomParams
Configs that directly affect motor-output.FeedbackConfigs
Feedback
Configs that directly affect motor-output.boolean
FutureProofConfigs
True if we should factory default newer unsupported configs, false to leave newer unsupported configs alone.HardwareLimitSwitchConfigs
HardwareLimitSwitch
Configs that directly affect motor-output.MotionMagicConfigs
MotionMagic
Configs that directly affect motor-output.MotorOutputConfigs
MotorOutput
Configs that directly affect motor-output.OpenLoopRampsConfigs
OpenLoopRamps
Configs that directly affect motor-output.Slot0Configs
Slot0
What the gains for slot 0 areSlot1Configs
Slot1
What the gains for slot 1 areSlot2Configs
Slot2
What the gains for slot 2 areSoftwareLimitSwitchConfigs
SoftwareLimitSwitch
Configs that directly affect motor-output.TorqueCurrentConfigs
TorqueCurrent
Configs that directly affect motor-output.VoltageConfigs
Voltage
Voltage-specific configs -
Constructor Summary
Constructors Constructor Description TalonFXConfiguration()
-
Method Summary
Modifier and Type Method Description StatusCode
deserialize(String string)
Take a string and deserialize it to this configurationString
serialize()
Get the serialized form of this configurationString
toString()
-
Field Details
-
FutureProofConfigs
True if we should factory default newer unsupported configs, false to leave newer unsupported configs alone.This flag addresses a corner case where the device may have firmware with newer configs that didn't exist when this version of the API was built. If this occurs and this flag is true, unsupported new configs will be factory defaulted to avoid unexpected behavior.
This is also the behavior in Phoenix 5, so this flag is defaulted to true to match.
-
Slot0
What the gains for slot 0 areIf this slot is selected, these gains are used in closed loop control requests.
-
Slot1
What the gains for slot 1 areIf this slot is selected, these gains are used in closed loop control requests.
-
Slot2
What the gains for slot 2 areIf this slot is selected, these gains are used in closed loop control requests.
-
MotorOutput
Configs that directly affect motor-output.Includes Motor Invert and various limit features.
-
CurrentLimits
Configs that directly affect current limiting features.Includes Motor Invert and various limit features.
-
Voltage
Voltage-specific configsVoltage-specific configs
-
TorqueCurrent
Configs that directly affect motor-output.Includes Motor Invert and various limit features.
-
Feedback
Configs that directly affect motor-output.Includes Motor Invert and various limit features.
-
OpenLoopRamps
Configs that directly affect motor-output.Includes Motor Invert and various limit features.
-
ClosedLoopRamps
Configs that directly affect motor-output.Includes Motor Invert and various limit features.
-
HardwareLimitSwitch
Configs that directly affect motor-output.Includes Motor Invert and various limit features.
-
Audio
Configs that directly affect motor-output.Includes Motor Invert and various limit features.
-
SoftwareLimitSwitch
Configs that directly affect motor-output.Includes Motor Invert and various limit features.
-
MotionMagic
Configs that directly affect motor-output.Includes Motor Invert and various limit features.
-
CustomParams
Configs that directly affect motor-output.Includes Motor Invert and various limit features.
-
ClosedLoopGeneral
Configs that affect general behavior during closed-looping.Includes Continuous Wrap features.
-
-
Constructor Details
-
TalonFXConfiguration
public TalonFXConfiguration()
-
-
Method Details
-
toString
-
serialize
Get the serialized form of this configuration- Specified by:
serialize
in interfaceISerializable
- Returns:
- Serialized form of this config group
-
deserialize
Take a string and deserialize it to this configuration- Specified by:
deserialize
in interfaceParentConfiguration
- Returns:
- Return code of the deserialize method
-