Class CommutationConfigs
- All Implemented Interfaces:
ParentConfiguration, Cloneable
Set these configs to match your motor setup before commanding motor output.
-
Field Summary
FieldsModifier and TypeFieldDescriptionRequires Phoenix Pro; Improves commutation and velocity measurement for motors with hall sensors.If a brushed motor is selected with Motor Arrangement, this config determines which of three leads to use.Selects the motor and motor connections used with Talon. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()final StatusCodedeserialize(String to_deserialize) Take a string and deserialize it to this configuration group.final StringGet the serialized form of this configuration group.toString()final CommutationConfigswithAdvancedHallSupport(AdvancedHallSupportValue newAdvancedHallSupport) Modifies this configuration's AdvancedHallSupport parameter and returns itself for method-chaining and easier to use config API.final CommutationConfigswithBrushedMotorWiring(BrushedMotorWiringValue newBrushedMotorWiring) Modifies this configuration's BrushedMotorWiring parameter and returns itself for method-chaining and easier to use config API.final CommutationConfigswithMotorArrangement(MotorArrangementValue newMotorArrangement) Modifies this configuration's MotorArrangement parameter and returns itself for method-chaining and easier to use config API.
-
Field Details
-
AdvancedHallSupport
Requires Phoenix Pro; Improves commutation and velocity measurement for motors with hall sensors. Talon can use advanced features to improve commutation and velocity measurement when using a motor with hall sensors. This can improve peak efficiency by as high as 2% and reduce noise in the measured velocity.- Default Value:
AdvancedHallSupportValue.Disabled
- Default Value:
-
MotorArrangement
Selects the motor and motor connections used with Talon.This setting determines what kind of motor and sensors are used with the Talon. This also determines what signals are used on the JST and Gadgeteer port.
Motor drive will not function correctly if this setting does not match the physical setup.
- Default Value:
MotorArrangementValue.Disabled
- Default Value:
-
BrushedMotorWiring
If a brushed motor is selected with Motor Arrangement, this config determines which of three leads to use.- Default Value:
BrushedMotorWiringValue.Leads_A_and_B
- Default Value:
-
-
Constructor Details
-
CommutationConfigs
public CommutationConfigs()
-
-
Method Details
-
withAdvancedHallSupport
public final CommutationConfigs withAdvancedHallSupport(AdvancedHallSupportValue newAdvancedHallSupport) Modifies this configuration's AdvancedHallSupport parameter and returns itself for method-chaining and easier to use config API.Requires Phoenix Pro; Improves commutation and velocity measurement for motors with hall sensors. Talon can use advanced features to improve commutation and velocity measurement when using a motor with hall sensors. This can improve peak efficiency by as high as 2% and reduce noise in the measured velocity.
- Default Value:
AdvancedHallSupportValue.Disabled
- Parameters:
newAdvancedHallSupport- Parameter to modify- Returns:
- Itself
- Default Value:
-
withMotorArrangement
Modifies this configuration's MotorArrangement parameter and returns itself for method-chaining and easier to use config API.Selects the motor and motor connections used with Talon.
This setting determines what kind of motor and sensors are used with the Talon. This also determines what signals are used on the JST and Gadgeteer port.
Motor drive will not function correctly if this setting does not match the physical setup.
- Default Value:
MotorArrangementValue.Disabled
- Parameters:
newMotorArrangement- Parameter to modify- Returns:
- Itself
- Default Value:
-
withBrushedMotorWiring
public final CommutationConfigs withBrushedMotorWiring(BrushedMotorWiringValue newBrushedMotorWiring) Modifies this configuration's BrushedMotorWiring parameter and returns itself for method-chaining and easier to use config API.If a brushed motor is selected with Motor Arrangement, this config determines which of three leads to use.
- Default Value:
BrushedMotorWiringValue.Leads_A_and_B
- Parameters:
newBrushedMotorWiring- Parameter to modify- Returns:
- Itself
- Default Value:
-
toString
-
serialize
Get the serialized form of this configuration group.- Specified by:
serializein interfaceParentConfiguration- Returns:
- Serialized form of this config group
-
deserialize
Take a string and deserialize it to this configuration group.- Specified by:
deserializein interfaceParentConfiguration- Parameters:
to_deserialize- The serialized configuration- Returns:
- Return code of the deserialize method
-
clone
-