CTRE Phoenix 6 C++ 25.0.0-beta-4
|
Configs that directly affect motor output. More...
#include <ctre/phoenix6/configs/Configs.hpp>
Public Member Functions | |
constexpr | MotorOutputConfigs ()=default |
constexpr MotorOutputConfigs & | WithInverted (signals::InvertedValue newInverted) |
Modifies this configuration's Inverted parameter and returns itself for method-chaining and easier to use config API. | |
constexpr MotorOutputConfigs & | WithNeutralMode (signals::NeutralModeValue newNeutralMode) |
Modifies this configuration's NeutralMode parameter and returns itself for method-chaining and easier to use config API. | |
constexpr MotorOutputConfigs & | WithDutyCycleNeutralDeadband (units::dimensionless::scalar_t newDutyCycleNeutralDeadband) |
Modifies this configuration's DutyCycleNeutralDeadband parameter and returns itself for method-chaining and easier to use config API. | |
constexpr MotorOutputConfigs & | WithPeakForwardDutyCycle (units::dimensionless::scalar_t newPeakForwardDutyCycle) |
Modifies this configuration's PeakForwardDutyCycle parameter and returns itself for method-chaining and easier to use config API. | |
constexpr MotorOutputConfigs & | WithPeakReverseDutyCycle (units::dimensionless::scalar_t newPeakReverseDutyCycle) |
Modifies this configuration's PeakReverseDutyCycle parameter and returns itself for method-chaining and easier to use config API. | |
constexpr MotorOutputConfigs & | WithControlTimesyncFreqHz (units::frequency::hertz_t newControlTimesyncFreqHz) |
Modifies this configuration's ControlTimesyncFreqHz 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::InvertedValue | Inverted = signals::InvertedValue::CounterClockwise_Positive |
Invert state of the device as seen from the front of the motor. | |
signals::NeutralModeValue | NeutralMode = signals::NeutralModeValue::Coast |
The state of the motor controller bridge when output is neutral or disabled. | |
units::dimensionless::scalar_t | DutyCycleNeutralDeadband = 0 |
Configures the output deadband duty cycle during duty cycle and voltage based control modes. | |
units::dimensionless::scalar_t | PeakForwardDutyCycle = 1 |
Maximum (forward) output during duty cycle based control modes. | |
units::dimensionless::scalar_t | PeakReverseDutyCycle = -1 |
Minimum (reverse) output during duty cycle based control modes. | |
units::frequency::hertz_t | ControlTimesyncFreqHz = 0_Hz |
When a control request UseTimesync is enabled, this determines the time-sychronized frequency at which control requests are applied. | |
Configs that directly affect motor output.
Includes motor invert, neutral mode, and other features related to 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 ControlTimesyncFreqHz parameter and returns itself for method-chaining and easier to use config API.
When a control request UseTimesync is enabled, this determines the time-sychronized frequency at which control requests are applied.
The application of the control request will be delayed until the next timesync boundary at the frequency defined by this config. When set to 0 Hz, timesync will never be used for control requests, regardless of the value of UseTimesync.
newControlTimesyncFreqHz | Parameter to modify |
|
inlineconstexpr |
Modifies this configuration's DutyCycleNeutralDeadband parameter and returns itself for method-chaining and easier to use config API.
Configures the output deadband duty cycle during duty cycle and voltage based control modes.
newDutyCycleNeutralDeadband | Parameter to modify |
|
inlineconstexpr |
Modifies this configuration's Inverted parameter and returns itself for method-chaining and easier to use config API.
Invert state of the device as seen from the front of the motor.
newInverted | Parameter to modify |
|
inlineconstexpr |
Modifies this configuration's NeutralMode parameter and returns itself for method-chaining and easier to use config API.
The state of the motor controller bridge when output is neutral or disabled.
newNeutralMode | Parameter to modify |
|
inlineconstexpr |
Modifies this configuration's PeakForwardDutyCycle parameter and returns itself for method-chaining and easier to use config API.
Maximum (forward) output during duty cycle based control modes.
newPeakForwardDutyCycle | Parameter to modify |
|
inlineconstexpr |
Modifies this configuration's PeakReverseDutyCycle parameter and returns itself for method-chaining and easier to use config API.
Minimum (reverse) output during duty cycle based control modes.
newPeakReverseDutyCycle | Parameter to modify |
units::frequency::hertz_t ctre::phoenix6::configs::MotorOutputConfigs::ControlTimesyncFreqHz = 0_Hz |
When a control request UseTimesync is enabled, this determines the time-sychronized frequency at which control requests are applied.
The application of the control request will be delayed until the next timesync boundary at the frequency defined by this config. When set to 0 Hz, timesync will never be used for control requests, regardless of the value of UseTimesync.
units::dimensionless::scalar_t ctre::phoenix6::configs::MotorOutputConfigs::DutyCycleNeutralDeadband = 0 |
Configures the output deadband duty cycle during duty cycle and voltage based control modes.
signals::InvertedValue ctre::phoenix6::configs::MotorOutputConfigs::Inverted = signals::InvertedValue::CounterClockwise_Positive |
Invert state of the device as seen from the front of the motor.
signals::NeutralModeValue ctre::phoenix6::configs::MotorOutputConfigs::NeutralMode = signals::NeutralModeValue::Coast |
The state of the motor controller bridge when output is neutral or disabled.
units::dimensionless::scalar_t ctre::phoenix6::configs::MotorOutputConfigs::PeakForwardDutyCycle = 1 |
Maximum (forward) output during duty cycle based control modes.
units::dimensionless::scalar_t ctre::phoenix6::configs::MotorOutputConfigs::PeakReverseDutyCycle = -1 |
Minimum (reverse) output during duty cycle based control modes.