Configs that affect how software-limit switches behave.
More...
#include <ctre/phoenix6/configs/Configs.hpp>
Configs that affect how software-limit switches behave.
Includes enabling software-limit switches and the threshold at which they are tripped.
◆ Deserialize()
ctre::phoenix::StatusCode ctre::phoenix6::configs::SoftwareLimitSwitchConfigs::Deserialize |
( |
const std::string & |
to_deserialize | ) |
|
|
inlineoverridevirtual |
◆ Serialize()
std::string ctre::phoenix6::configs::SoftwareLimitSwitchConfigs::Serialize |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ ToString()
std::string ctre::phoenix6::configs::SoftwareLimitSwitchConfigs::ToString |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ WithForwardSoftLimitEnable()
SoftwareLimitSwitchConfigs & ctre::phoenix6::configs::SoftwareLimitSwitchConfigs::WithForwardSoftLimitEnable |
( |
bool |
newForwardSoftLimitEnable | ) |
|
|
inline |
Modifies this configuration's ForwardSoftLimitEnable parameter and returns itself for method-chaining and easier to use config API.
If enabled, the motor output is set to neutral if position exceeds ForwardSoftLimitThreshold and forward output is requested.
- Parameters
-
newForwardSoftLimitEnable | Parameter to modify |
- Returns
- Itself
◆ WithForwardSoftLimitThreshold()
SoftwareLimitSwitchConfigs & ctre::phoenix6::configs::SoftwareLimitSwitchConfigs::WithForwardSoftLimitThreshold |
( |
double |
newForwardSoftLimitThreshold | ) |
|
|
inline |
Modifies this configuration's ForwardSoftLimitThreshold parameter and returns itself for method-chaining and easier to use config API.
Position threshold for forward soft limit features. ForwardSoftLimitEnable must be enabled for this to take effect.
- Minimum Value: -3.4e+38
- Maximum Value: 3.4e+38
- Default Value: 0
- Units: rotations
- Parameters
-
newForwardSoftLimitThreshold | Parameter to modify |
- Returns
- Itself
◆ WithReverseSoftLimitEnable()
SoftwareLimitSwitchConfigs & ctre::phoenix6::configs::SoftwareLimitSwitchConfigs::WithReverseSoftLimitEnable |
( |
bool |
newReverseSoftLimitEnable | ) |
|
|
inline |
Modifies this configuration's ReverseSoftLimitEnable parameter and returns itself for method-chaining and easier to use config API.
If enabled, the motor output is set to neutral if position exceeds ReverseSoftLimitThreshold and reverse output is requested.
- Parameters
-
newReverseSoftLimitEnable | Parameter to modify |
- Returns
- Itself
◆ WithReverseSoftLimitThreshold()
SoftwareLimitSwitchConfigs & ctre::phoenix6::configs::SoftwareLimitSwitchConfigs::WithReverseSoftLimitThreshold |
( |
double |
newReverseSoftLimitThreshold | ) |
|
|
inline |
Modifies this configuration's ReverseSoftLimitThreshold parameter and returns itself for method-chaining and easier to use config API.
Position threshold for reverse soft limit features. ReverseSoftLimitEnable must be enabled for this to take effect.
- Minimum Value: -3.4e+38
- Maximum Value: 3.4e+38
- Default Value: 0
- Units: rotations
- Parameters
-
newReverseSoftLimitThreshold | Parameter to modify |
- Returns
- Itself
◆ ForwardSoftLimitEnable
bool ctre::phoenix6::configs::SoftwareLimitSwitchConfigs::ForwardSoftLimitEnable = false |
If enabled, the motor output is set to neutral if position exceeds ForwardSoftLimitThreshold and forward output is requested.
◆ ForwardSoftLimitThreshold
double ctre::phoenix6::configs::SoftwareLimitSwitchConfigs::ForwardSoftLimitThreshold = 0 |
Position threshold for forward soft limit features.
ForwardSoftLimitEnable must be enabled for this to take effect.
- Minimum Value: -3.4e+38
- Maximum Value: 3.4e+38
- Default Value: 0
- Units: rotations
◆ ReverseSoftLimitEnable
bool ctre::phoenix6::configs::SoftwareLimitSwitchConfigs::ReverseSoftLimitEnable = false |
If enabled, the motor output is set to neutral if position exceeds ReverseSoftLimitThreshold and reverse output is requested.
◆ ReverseSoftLimitThreshold
double ctre::phoenix6::configs::SoftwareLimitSwitchConfigs::ReverseSoftLimitThreshold = 0 |
Position threshold for reverse soft limit features.
ReverseSoftLimitEnable must be enabled for this to take effect.
- Minimum Value: -3.4e+38
- Maximum Value: 3.4e+38
- Default Value: 0
- Units: rotations
The documentation for this class was generated from the following file: