Configs that affect the closed-loop control of this motor controller.
More...
#include <ctre/phoenix6/configs/Configs.hpp>
Configs that affect the closed-loop control of this motor controller.
Closed-loop ramp rates for the various control types.
◆ Deserialize()
ctre::phoenix::StatusCode ctre::phoenix6::configs::ClosedLoopRampsConfigs::Deserialize |
( |
const std::string & |
to_deserialize | ) |
|
|
inlineoverridevirtual |
◆ Serialize()
std::string ctre::phoenix6::configs::ClosedLoopRampsConfigs::Serialize |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ ToString()
std::string ctre::phoenix6::configs::ClosedLoopRampsConfigs::ToString |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ WithDutyCycleClosedLoopRampPeriod()
ClosedLoopRampsConfigs & ctre::phoenix6::configs::ClosedLoopRampsConfigs::WithDutyCycleClosedLoopRampPeriod |
( |
double |
newDutyCycleClosedLoopRampPeriod | ) |
|
|
inline |
Modifies this configuration's DutyCycleClosedLoopRampPeriod parameter and returns itself for method-chaining and easier to use config API.
If non-zero, this determines how much time to ramp from 0% output to 100% during closed-loop modes.
- Minimum Value: 0
- Maximum Value: 1
- Default Value: 0
- Units: sec
- Parameters
-
newDutyCycleClosedLoopRampPeriod | Parameter to modify |
- Returns
- Itself
◆ WithTorqueClosedLoopRampPeriod()
ClosedLoopRampsConfigs & ctre::phoenix6::configs::ClosedLoopRampsConfigs::WithTorqueClosedLoopRampPeriod |
( |
double |
newTorqueClosedLoopRampPeriod | ) |
|
|
inline |
Modifies this configuration's TorqueClosedLoopRampPeriod parameter and returns itself for method-chaining and easier to use config API.
If non-zero, this determines how much time to ramp from 0A output to 300A during closed-loop modes.
- Minimum Value: 0
- Maximum Value: 10
- Default Value: 0
- Units: sec
- Parameters
-
newTorqueClosedLoopRampPeriod | Parameter to modify |
- Returns
- Itself
◆ WithVoltageClosedLoopRampPeriod()
ClosedLoopRampsConfigs & ctre::phoenix6::configs::ClosedLoopRampsConfigs::WithVoltageClosedLoopRampPeriod |
( |
double |
newVoltageClosedLoopRampPeriod | ) |
|
|
inline |
Modifies this configuration's VoltageClosedLoopRampPeriod parameter and returns itself for method-chaining and easier to use config API.
If non-zero, this determines how much time to ramp from 0V output to 12V during closed-loop modes.
- Minimum Value: 0
- Maximum Value: 1
- Default Value: 0
- Units: sec
- Parameters
-
newVoltageClosedLoopRampPeriod | Parameter to modify |
- Returns
- Itself
◆ DutyCycleClosedLoopRampPeriod
double ctre::phoenix6::configs::ClosedLoopRampsConfigs::DutyCycleClosedLoopRampPeriod = 0 |
If non-zero, this determines how much time to ramp from 0% output to 100% during closed-loop modes.
- Minimum Value: 0
- Maximum Value: 1
- Default Value: 0
- Units: sec
◆ TorqueClosedLoopRampPeriod
double ctre::phoenix6::configs::ClosedLoopRampsConfigs::TorqueClosedLoopRampPeriod = 0 |
If non-zero, this determines how much time to ramp from 0A output to 300A during closed-loop modes.
- Minimum Value: 0
- Maximum Value: 10
- Default Value: 0
- Units: sec
◆ VoltageClosedLoopRampPeriod
double ctre::phoenix6::configs::ClosedLoopRampsConfigs::VoltageClosedLoopRampPeriod = 0 |
If non-zero, this determines how much time to ramp from 0V output to 12V during closed-loop modes.
- Minimum Value: 0
- Maximum Value: 1
- Default Value: 0
- Units: sec
The documentation for this class was generated from the following file: