Configs that affect Torque Current control types.
More...
#include <ctre/phoenix6/configs/Configs.hpp>
|
units::current::ampere_t | PeakForwardTorqueCurrent = 800_A |
| Maximum (forward) output during torque current based control modes.
|
|
units::current::ampere_t | PeakReverseTorqueCurrent = -800_A |
| Minimum (reverse) output during torque current based control modes.
|
|
units::current::ampere_t | TorqueNeutralDeadband = 0.0_A |
| Configures the output deadband during torque current based control modes.
|
|
Configs that affect Torque Current control types.
Includes the maximum and minimum applied torque output and the neutral deadband used during TorqueCurrentFOC requests.
◆ TorqueCurrentConfigs()
constexpr ctre::phoenix6::configs::TorqueCurrentConfigs::TorqueCurrentConfigs |
( |
| ) |
|
|
constexprdefault |
◆ Deserialize()
◆ Serialize()
std::string ctre::phoenix6::configs::TorqueCurrentConfigs::Serialize |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ ToString()
std::string ctre::phoenix6::configs::TorqueCurrentConfigs::ToString |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ WithPeakForwardTorqueCurrent()
constexpr TorqueCurrentConfigs & ctre::phoenix6::configs::TorqueCurrentConfigs::WithPeakForwardTorqueCurrent |
( |
units::current::ampere_t | newPeakForwardTorqueCurrent | ) |
|
|
inlineconstexpr |
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()
constexpr TorqueCurrentConfigs & ctre::phoenix6::configs::TorqueCurrentConfigs::WithPeakReverseTorqueCurrent |
( |
units::current::ampere_t | newPeakReverseTorqueCurrent | ) |
|
|
inlineconstexpr |
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()
constexpr TorqueCurrentConfigs & ctre::phoenix6::configs::TorqueCurrentConfigs::WithTorqueNeutralDeadband |
( |
units::current::ampere_t | newTorqueNeutralDeadband | ) |
|
|
inlineconstexpr |
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
units::current::ampere_t ctre::phoenix6::configs::TorqueCurrentConfigs::PeakForwardTorqueCurrent = 800_A |
Maximum (forward) output during torque current based control modes.
- Minimum Value: -800
- Maximum Value: 800
- Default Value: 800
- Units: A
◆ PeakReverseTorqueCurrent
units::current::ampere_t ctre::phoenix6::configs::TorqueCurrentConfigs::PeakReverseTorqueCurrent = -800_A |
Minimum (reverse) output during torque current based control modes.
- Minimum Value: -800
- Maximum Value: 800
- Default Value: -800
- Units: A
◆ TorqueNeutralDeadband
units::current::ampere_t ctre::phoenix6::configs::TorqueCurrentConfigs::TorqueNeutralDeadband = 0.0_A |
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: