Class TalonFXConfiguration
- All Implemented Interfaces:
ParentConfiguration,ISerializable
public class TalonFXConfiguration extends Object implements ParentConfiguration
TalonFX-
Field Summary
Fields Modifier and Type Field Description AudioConfigsAudioConfigs that directly affect motor-output.ClosedLoopGeneralConfigsClosedLoopGeneralConfigs that affect general behavior during closed-looping.ClosedLoopRampsConfigsClosedLoopRampsConfigs that directly affect motor-output.CurrentLimitsConfigsCurrentLimitsConfigs that directly affect current limiting features.CustomParamsConfigsCustomParamsConfigs that directly affect motor-output.FeedbackConfigsFeedbackConfigs that directly affect motor-output.booleanFutureProofConfigsTrue if we should factory default newer unsupported configs, false to leave newer unsupported configs alone.HardwareLimitSwitchConfigsHardwareLimitSwitchConfigs that directly affect motor-output.MotionMagicConfigsMotionMagicConfigs that directly affect motor-output.MotorOutputConfigsMotorOutputConfigs that directly affect motor-output.OpenLoopRampsConfigsOpenLoopRampsConfigs that directly affect motor-output.Slot0ConfigsSlot0What the gains for slot 0 areSlot1ConfigsSlot1What the gains for slot 1 areSlot2ConfigsSlot2What the gains for slot 2 areSoftwareLimitSwitchConfigsSoftwareLimitSwitchConfigs that directly affect motor-output.TorqueCurrentConfigsTorqueCurrentConfigs that directly affect motor-output.VoltageConfigsVoltageVoltage-specific configs -
Constructor Summary
Constructors Constructor Description TalonFXConfiguration() -
Method Summary
Modifier and Type Method Description StatusCodedeserialize(String string)Take a string and deserialize it to this configurationStringserialize()Get the serialized form of this configurationStringtoString()
-
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:
serializein interfaceISerializable- Returns:
- Serialized form of this config group
-
deserialize
Take a string and deserialize it to this configuration- Specified by:
deserializein interfaceParentConfiguration- Returns:
- Return code of the deserialize method
-