Configs related to constants used for differential control of a mechanism.
More...
#include <ctre/phoenix6/configs/Configs.hpp>
|
units::dimensionless::scalar_t | PeakDifferentialDutyCycle = 2 |
| Maximum differential output during duty cycle based differential control modes.
|
|
units::voltage::volt_t | PeakDifferentialVoltage = 32_V |
| Maximum differential output during voltage based differential control modes.
|
|
units::current::ampere_t | PeakDifferentialTorqueCurrent = 1600_A |
| Maximum differential output during torque current based differential control modes.
|
|
Configs related to constants used for differential control of a mechanism.
Includes the differential peak outputs.
◆ DifferentialConstantsConfigs()
constexpr ctre::phoenix6::configs::DifferentialConstantsConfigs::DifferentialConstantsConfigs |
( |
| ) |
|
|
constexprdefault |
◆ Deserialize()
ctre::phoenix::StatusCode ctre::phoenix6::configs::DifferentialConstantsConfigs::Deserialize |
( |
const std::string & | to_deserialize | ) |
|
|
inlineoverridevirtual |
◆ Serialize()
std::string ctre::phoenix6::configs::DifferentialConstantsConfigs::Serialize |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ ToString()
std::string ctre::phoenix6::configs::DifferentialConstantsConfigs::ToString |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ WithPeakDifferentialDutyCycle()
constexpr DifferentialConstantsConfigs & ctre::phoenix6::configs::DifferentialConstantsConfigs::WithPeakDifferentialDutyCycle |
( |
units::dimensionless::scalar_t | newPeakDifferentialDutyCycle | ) |
|
|
inlineconstexpr |
Modifies this configuration's PeakDifferentialDutyCycle parameter and returns itself for method-chaining and easier to use config API.
Maximum differential output during duty cycle based differential control modes.
- Minimum Value: 0.0
- Maximum Value: 2.0
- Default Value: 2
- Units: fractional
- Parameters
-
newPeakDifferentialDutyCycle | Parameter to modify |
- Returns
- Itself
◆ WithPeakDifferentialTorqueCurrent()
constexpr DifferentialConstantsConfigs & ctre::phoenix6::configs::DifferentialConstantsConfigs::WithPeakDifferentialTorqueCurrent |
( |
units::current::ampere_t | newPeakDifferentialTorqueCurrent | ) |
|
|
inlineconstexpr |
Modifies this configuration's PeakDifferentialTorqueCurrent parameter and returns itself for method-chaining and easier to use config API.
Maximum differential output during torque current based differential control modes.
- Minimum Value: 0.0
- Maximum Value: 1600
- Default Value: 1600
- Units: A
- Parameters
-
newPeakDifferentialTorqueCurrent | Parameter to modify |
- Returns
- Itself
◆ WithPeakDifferentialVoltage()
constexpr DifferentialConstantsConfigs & ctre::phoenix6::configs::DifferentialConstantsConfigs::WithPeakDifferentialVoltage |
( |
units::voltage::volt_t | newPeakDifferentialVoltage | ) |
|
|
inlineconstexpr |
Modifies this configuration's PeakDifferentialVoltage parameter and returns itself for method-chaining and easier to use config API.
Maximum differential output during voltage based differential control modes.
- Minimum Value: 0.0
- Maximum Value: 32
- Default Value: 32
- Units: V
- Parameters
-
newPeakDifferentialVoltage | Parameter to modify |
- Returns
- Itself
◆ PeakDifferentialDutyCycle
units::dimensionless::scalar_t ctre::phoenix6::configs::DifferentialConstantsConfigs::PeakDifferentialDutyCycle = 2 |
Maximum differential output during duty cycle based differential control modes.
- Minimum Value: 0.0
- Maximum Value: 2.0
- Default Value: 2
- Units: fractional
◆ PeakDifferentialTorqueCurrent
units::current::ampere_t ctre::phoenix6::configs::DifferentialConstantsConfigs::PeakDifferentialTorqueCurrent = 1600_A |
Maximum differential output during torque current based differential control modes.
- Minimum Value: 0.0
- Maximum Value: 1600
- Default Value: 1600
- Units: A
◆ PeakDifferentialVoltage
units::voltage::volt_t ctre::phoenix6::configs::DifferentialConstantsConfigs::PeakDifferentialVoltage = 32_V |
Maximum differential output during voltage based differential control modes.
- Minimum Value: 0.0
- Maximum Value: 32
- Default Value: 32
- Units: V
The documentation for this class was generated from the following file: