CTRE Phoenix 6 C++ 25.3.0
|
Configs that determine motor selection and commutation. More...
#include <ctre/phoenix6/configs/Configs.hpp>
Public Member Functions | |
constexpr | CommutationConfigs ()=default |
constexpr CommutationConfigs & | WithAdvancedHallSupport (signals::AdvancedHallSupportValue newAdvancedHallSupport) |
Modifies this configuration's AdvancedHallSupport parameter and returns itself for method-chaining and easier to use config API. | |
constexpr CommutationConfigs & | WithMotorArrangement (signals::MotorArrangementValue newMotorArrangement) |
Modifies this configuration's MotorArrangement parameter and returns itself for method-chaining and easier to use config API. | |
constexpr CommutationConfigs & | WithBrushedMotorWiring (signals::BrushedMotorWiringValue newBrushedMotorWiring) |
Modifies this configuration's BrushedMotorWiring parameter and returns itself for method-chaining and easier to use config API. | |
std::string | ToString () const override |
std::string | Serialize () const override |
ctre::phoenix::StatusCode | Deserialize (const std::string &to_deserialize) override |
![]() | |
![]() |
Public Attributes | |
signals::AdvancedHallSupportValue | AdvancedHallSupport = signals::AdvancedHallSupportValue::Disabled |
Requires Phoenix Pro; Improves commutation and velocity measurement for motors with hall sensors. | |
signals::MotorArrangementValue | MotorArrangement = signals::MotorArrangementValue::Disabled |
Selects the motor and motor connections used with Talon. | |
signals::BrushedMotorWiringValue | BrushedMotorWiring = signals::BrushedMotorWiringValue::Leads_A_and_B |
If a brushed motor is selected with Motor Arrangement, this config determines which of three leads to use. | |
Configs that determine motor selection and commutation.
Set these configs to match your motor setup before commanding motor output.
|
constexprdefault |
|
inlineoverridevirtual |
Implements ctre::phoenix6::configs::ParentConfiguration.
|
inlineoverridevirtual |
Implements ctre::phoenix6::ISerializable.
|
inlineoverridevirtual |
Implements ctre::phoenix6::configs::ParentConfiguration.
|
inlineconstexpr |
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.
newAdvancedHallSupport | Parameter to modify |
|
inlineconstexpr |
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.
newBrushedMotorWiring | Parameter to modify |
|
inlineconstexpr |
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.
newMotorArrangement | Parameter to modify |
signals::AdvancedHallSupportValue ctre::phoenix6::configs::CommutationConfigs::AdvancedHallSupport = signals::AdvancedHallSupportValue::Disabled |
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.
signals::BrushedMotorWiringValue ctre::phoenix6::configs::CommutationConfigs::BrushedMotorWiring = signals::BrushedMotorWiringValue::Leads_A_and_B |
If a brushed motor is selected with Motor Arrangement, this config determines which of three leads to use.
signals::MotorArrangementValue ctre::phoenix6::configs::CommutationConfigs::MotorArrangement = signals::MotorArrangementValue::Disabled |
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.