#include <SoftLimitConfig.h>
Inherits rev::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.
- Parameters
-
| limit | The forward soft limit position |
- 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.
- Parameters
-
| limit | The reverse soft limit position |
- 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: