CTRE Phoenix 6 C++ 24.3.0
|
Configs that directly affect motor output. More...
#include <ctre/phoenix6/configs/Configs.hpp>
Public Member Functions | |
MotorOutputConfigs & | WithInverted (signals::InvertedValue newInverted) |
Modifies this configuration's Inverted parameter and returns itself for method-chaining and easier to use config API. More... | |
MotorOutputConfigs & | WithNeutralMode (signals::NeutralModeValue newNeutralMode) |
Modifies this configuration's NeutralMode parameter and returns itself for method-chaining and easier to use config API. More... | |
MotorOutputConfigs & | WithDutyCycleNeutralDeadband (double newDutyCycleNeutralDeadband) |
Modifies this configuration's DutyCycleNeutralDeadband parameter and returns itself for method-chaining and easier to use config API. More... | |
MotorOutputConfigs & | WithPeakForwardDutyCycle (double newPeakForwardDutyCycle) |
Modifies this configuration's PeakForwardDutyCycle parameter and returns itself for method-chaining and easier to use config API. More... | |
MotorOutputConfigs & | WithPeakReverseDutyCycle (double newPeakReverseDutyCycle) |
Modifies this configuration's PeakReverseDutyCycle parameter and returns itself for method-chaining and easier to use config API. More... | |
std::string | ToString () const override |
std::string | Serialize () const override |
ctre::phoenix::StatusCode | Deserialize (const std::string &to_deserialize) override |
virtual std::string | ToString () const =0 |
virtual ctre::phoenix::StatusCode | Deserialize (const std::string &string)=0 |
virtual std::string | Serialize () const =0 |
Public Attributes | |
signals::InvertedValue | Inverted = signals::InvertedValue::CounterClockwise_Positive |
Invert state of the device. More... | |
signals::NeutralModeValue | NeutralMode = signals::NeutralModeValue::Coast |
The state of the motor controller bridge when output is neutral or disabled. More... | |
double | DutyCycleNeutralDeadband = 0 |
Configures the output deadband duty cycle during duty cycle and voltage based control modes. More... | |
double | PeakForwardDutyCycle = 1 |
Maximum (forward) output during duty cycle based control modes. More... | |
double | PeakReverseDutyCycle = -1 |
Minimum (reverse) output during duty cycle based control modes. More... | |
Configs that directly affect motor output.
Includes motor invert, neutral mode, and other features related to motor output.
|
inlineoverridevirtual |
Implements ctre::phoenix6::configs::ParentConfiguration.
|
inlineoverridevirtual |
Implements ctre::phoenix6::ISerializable.
|
inlineoverridevirtual |
Implements ctre::phoenix6::configs::ParentConfiguration.
|
inline |
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 |
|
inline |
Modifies this configuration's Inverted parameter and returns itself for method-chaining and easier to use config API.
Invert state of the device.
newInverted | Parameter to modify |
|
inline |
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 |
|
inline |
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 |
|
inline |
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 |
double 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.
signals::NeutralModeValue ctre::phoenix6::configs::MotorOutputConfigs::NeutralMode = signals::NeutralModeValue::Coast |
The state of the motor controller bridge when output is neutral or disabled.
double ctre::phoenix6::configs::MotorOutputConfigs::PeakForwardDutyCycle = 1 |
Maximum (forward) output during duty cycle based control modes.
double ctre::phoenix6::configs::MotorOutputConfigs::PeakReverseDutyCycle = -1 |
Minimum (reverse) output during duty cycle based control modes.