Configs that determine motor selection and commutation.
Definition CommutationConfigs.hpp:24
std::string ToString() const override
constexpr CommutationConfigs & WithAdvancedHallSupport(signals::AdvancedHallSupportValue newAdvancedHallSupport)
Modifies this configuration's AdvancedHallSupport parameter and returns itself for method-chaining an...
Definition CommutationConfigs.hpp:70
signals::BrushedMotorWiringValue BrushedMotorWiring
If a brushed motor is selected with Motor Arrangement, this config determines which of three leads to...
Definition CommutationConfigs.hpp:54
signals::AdvancedHallSupportValue AdvancedHallSupport
Requires Phoenix Pro; Improves commutation and velocity measurement for motors with hall sensors.
Definition CommutationConfigs.hpp:36
ctre::phoenix::StatusCode Deserialize(std::string const &to_deserialize) final
signals::MotorArrangementValue MotorArrangement
Selects the motor and motor connections used with Talon.
Definition CommutationConfigs.hpp:48
constexpr CommutationConfigs()=default
constexpr CommutationConfigs & WithBrushedMotorWiring(signals::BrushedMotorWiringValue newBrushedMotorWiring)
Modifies this configuration's BrushedMotorWiring parameter and returns itself for method-chaining and...
Definition CommutationConfigs.hpp:110
constexpr CommutationConfigs & WithMotorArrangement(signals::MotorArrangementValue newMotorArrangement)
Modifies this configuration's MotorArrangement parameter and returns itself for method-chaining and e...
Definition CommutationConfigs.hpp:93
std::string Serialize() const final
Definition Configuration.hpp:17
Definition motor_constants.h:14
Requires Phoenix Pro; Improves commutation and velocity measurement for motors with hall sensors.
Definition SpnEnums.hpp:2775
static constexpr int Disabled
Talon will utilize hall sensors without advanced features.
Definition SpnEnums.hpp:2781
If a brushed motor is selected with Motor Arrangement, this config determines which of three leads to...
Definition SpnEnums.hpp:3686
static constexpr int Leads_A_and_B
Third party brushed DC motor with two leads.
Definition SpnEnums.hpp:3700
Selects the motor and motor connections used with Talon.
Definition SpnEnums.hpp:2839
static constexpr int Disabled
Motor is not selected.
Definition SpnEnums.hpp:2847