#include <SoftLimitConfig.h>
Inherits rev::spark::BaseConfig.
◆ SoftLimitConfig() [1/3]
rev::spark::SoftLimitConfig::SoftLimitConfig |
( |
| ) |
|
|
default |
◆ ~SoftLimitConfig()
rev::spark::SoftLimitConfig::~SoftLimitConfig |
( |
| ) |
|
|
overridedefault |
◆ SoftLimitConfig() [2/3]
◆ SoftLimitConfig() [3/3]
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ Apply()
Applies settings from another SoftLimitConfig to this one.
Settings in the provided config will overwrite existing values in this object. Settings not specified in the provided config remain unchanged.
- Parameters
-
- Returns
- The updated SoftLimitConfig for method chaining
◆ ForwardSoftLimit()
Set the forward soft limit based on the position of the selected feedback sensor. This will disable motor actuation in the forward direction past this position. This value should have the position conversion factor applied to it.
- Parameters
-
limit | The forward soft limit position with the conversion factor applied |
- Returns
- The modified SoftLimitConfig object for method chaining
◆ ForwardSoftLimitEnabled()
Set whether to enable or disable the forward soft limit.
- Parameters
-
enabled | True to enable the forward soft limit |
- Returns
- The modified SoftLimitConfig object for method chaining
◆ ReverseSoftLimit()
Set the reverse soft limit based on the position of the selected feedback sensor. This will disable motor actuation in the reverse direction past this position. This value should have the position conversion factor applied to it.
- Parameters
-
limit | The reverse soft limit position with the conversion factor applied |
- Returns
- The modified SoftLimitConfig object for method chaining
◆ ReverseSoftLimitEnabled()
Set whether to enable or disable the reverse soft limit.
- Parameters
-
enabled | True to enable the reverse soft limit |
- Returns
- The modified SoftLimitConfig object for method chaining
The documentation for this class was generated from the following files: