Class CommutationConfigs
Configs that determine motor selection and commutation.
Set these configs to match your motor setup before commanding motor output.public class CommutationConfigs : IParentConfiguration, ISerializable, ICloneable
- Inheritance
-
CommutationConfigs
- Implements
- Inherited Members
Fields
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.
public AdvancedHallSupportValue AdvancedHallSupport
Field Value
BrushedMotorWiring
If a brushed motor is selected with Motor Arrangement, this config determines which of three leads to use.
public BrushedMotorWiringValue BrushedMotorWiring
Field 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.public MotorArrangementValue MotorArrangement
Field Value
Methods
Clone()
Creates a copy of this config group.
public CommutationConfigs Clone()
Returns
Deserialize(string)
Deserialize string and put values into this object
public StatusCode Deserialize(string to_deserialize)
Parameters
to_deserializestringString to deserialize
Returns
- StatusCode
OK if deserialization is OK
Serialize()
Serialize this object into a string
public string Serialize()
Returns
- string
This object's data serialized into a string
ToString()
Provides the string representation of this object
public override string ToString()
Returns
WithAdvancedHallSupport(AdvancedHallSupportValue)
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.public CommutationConfigs WithAdvancedHallSupport(AdvancedHallSupportValue newAdvancedHallSupport)
Parameters
newAdvancedHallSupportAdvancedHallSupportValueParameter to modify
Returns
- CommutationConfigs
Itself
WithBrushedMotorWiring(BrushedMotorWiringValue)
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.public CommutationConfigs WithBrushedMotorWiring(BrushedMotorWiringValue newBrushedMotorWiring)
Parameters
newBrushedMotorWiringBrushedMotorWiringValueParameter to modify
Returns
- CommutationConfigs
Itself
WithMotorArrangement(MotorArrangementValue)
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.public CommutationConfigs WithMotorArrangement(MotorArrangementValue newMotorArrangement)
Parameters
newMotorArrangementMotorArrangementValueParameter to modify
Returns
- CommutationConfigs
Itself