Configs that affect Torque Current control types.
More...
#include <ctre/phoenix6/configs/Configs.hpp>
Configs that affect Torque Current control types.
Includes the maximum and minimum applied torque output and the neutral deadband used during TorqueCurrentFOC requests.
◆ Deserialize()
ctre::phoenix::StatusCode ctre::phoenix6::configs::TorqueCurrentConfigs::Deserialize |
( |
const std::string & |
to_deserialize | ) |
|
|
inlineoverridevirtual |
◆ Serialize()
std::string ctre::phoenix6::configs::TorqueCurrentConfigs::Serialize |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ ToString()
std::string ctre::phoenix6::configs::TorqueCurrentConfigs::ToString |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ WithPeakForwardTorqueCurrent()
TorqueCurrentConfigs & ctre::phoenix6::configs::TorqueCurrentConfigs::WithPeakForwardTorqueCurrent |
( |
double |
newPeakForwardTorqueCurrent | ) |
|
|
inline |
Modifies this configuration's PeakForwardTorqueCurrent parameter and returns itself for method-chaining and easier to use config API.
Maximum (forward) output during torque current based control modes.
- Minimum Value: -800
- Maximum Value: 800
- Default Value: 800
- Units: A
- Parameters
-
newPeakForwardTorqueCurrent | Parameter to modify |
- Returns
- Itself
◆ WithPeakReverseTorqueCurrent()
TorqueCurrentConfigs & ctre::phoenix6::configs::TorqueCurrentConfigs::WithPeakReverseTorqueCurrent |
( |
double |
newPeakReverseTorqueCurrent | ) |
|
|
inline |
Modifies this configuration's PeakReverseTorqueCurrent parameter and returns itself for method-chaining and easier to use config API.
Minimum (reverse) output during torque current based control modes.
- Minimum Value: -800
- Maximum Value: 800
- Default Value: -800
- Units: A
- Parameters
-
newPeakReverseTorqueCurrent | Parameter to modify |
- Returns
- Itself
◆ WithTorqueNeutralDeadband()
TorqueCurrentConfigs & ctre::phoenix6::configs::TorqueCurrentConfigs::WithTorqueNeutralDeadband |
( |
double |
newTorqueNeutralDeadband | ) |
|
|
inline |
Modifies this configuration's TorqueNeutralDeadband parameter and returns itself for method-chaining and easier to use config API.
Configures the output deadband during torque current based control modes.
- Minimum Value: 0
- Maximum Value: 25
- Default Value: 0.0
- Units: A
- Parameters
-
newTorqueNeutralDeadband | Parameter to modify |
- Returns
- Itself
◆ PeakForwardTorqueCurrent
double ctre::phoenix6::configs::TorqueCurrentConfigs::PeakForwardTorqueCurrent = 800 |
Maximum (forward) output during torque current based control modes.
- Minimum Value: -800
- Maximum Value: 800
- Default Value: 800
- Units: A
◆ PeakReverseTorqueCurrent
double ctre::phoenix6::configs::TorqueCurrentConfigs::PeakReverseTorqueCurrent = -800 |
Minimum (reverse) output during torque current based control modes.
- Minimum Value: -800
- Maximum Value: 800
- Default Value: -800
- Units: A
◆ TorqueNeutralDeadband
double ctre::phoenix6::configs::TorqueCurrentConfigs::TorqueNeutralDeadband = 0.0 |
Configures the output deadband during torque current based control modes.
- Minimum Value: 0
- Maximum Value: 25
- Default Value: 0.0
- Units: A
The documentation for this class was generated from the following file: