CTRE Phoenix 6 C++ 24.2.0
|
Configs that affect how software-limit switches behave. More...
#include <ctre/phoenix6/configs/Configs.hpp>
Public Member Functions | |
SoftwareLimitSwitchConfigs & | WithForwardSoftLimitEnable (bool newForwardSoftLimitEnable) |
Modifies this configuration's ForwardSoftLimitEnable parameter and returns itself for method-chaining and easier to use config API. More... | |
SoftwareLimitSwitchConfigs & | WithReverseSoftLimitEnable (bool newReverseSoftLimitEnable) |
Modifies this configuration's ReverseSoftLimitEnable parameter and returns itself for method-chaining and easier to use config API. More... | |
SoftwareLimitSwitchConfigs & | WithForwardSoftLimitThreshold (double newForwardSoftLimitThreshold) |
Modifies this configuration's ForwardSoftLimitThreshold parameter and returns itself for method-chaining and easier to use config API. More... | |
SoftwareLimitSwitchConfigs & | WithReverseSoftLimitThreshold (double newReverseSoftLimitThreshold) |
Modifies this configuration's ReverseSoftLimitThreshold parameter and returns itself for method-chaining and easier to use config API. More... | |
std::string | ToString () const override |
std::string | Serialize () const override |
ctre::phoenix::StatusCode | Deserialize (const std::string &to_deserialize) override |
virtual std::string | ToString () const =0 |
virtual ctre::phoenix::StatusCode | Deserialize (const std::string &string)=0 |
virtual std::string | Serialize () const =0 |
Public Attributes | |
bool | ForwardSoftLimitEnable = false |
If enabled, the motor output is set to neutral if position exceeds ForwardSoftLimitThreshold and forward output is requested. More... | |
bool | ReverseSoftLimitEnable = false |
If enabled, the motor output is set to neutral if position exceeds ReverseSoftLimitThreshold and reverse output is requested. More... | |
double | ForwardSoftLimitThreshold = 0 |
Position threshold for forward soft limit features. More... | |
double | ReverseSoftLimitThreshold = 0 |
Position threshold for reverse soft limit features. More... | |
Configs that affect how software-limit switches behave.
Includes enabling software-limit switches and the threshold at which they're tripped.
|
inlineoverridevirtual |
Implements ctre::phoenix6::configs::ParentConfiguration.
|
inlineoverridevirtual |
Implements ctre::phoenix6::ISerializable.
|
inlineoverridevirtual |
Implements ctre::phoenix6::configs::ParentConfiguration.
|
inline |
Modifies this configuration's ForwardSoftLimitEnable parameter and returns itself for method-chaining and easier to use config API.
newForwardSoftLimitEnable | Parameter to modify |
|
inline |
Modifies this configuration's ForwardSoftLimitThreshold parameter and returns itself for method-chaining and easier to use config API.
newForwardSoftLimitThreshold | Parameter to modify |
|
inline |
Modifies this configuration's ReverseSoftLimitEnable parameter and returns itself for method-chaining and easier to use config API.
newReverseSoftLimitEnable | Parameter to modify |
|
inline |
Modifies this configuration's ReverseSoftLimitThreshold parameter and returns itself for method-chaining and easier to use config API.
newReverseSoftLimitThreshold | Parameter to modify |
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.
Default Value: False
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
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.
Default Value: False
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