#include <DetachedEncoderConfig.h>
Inherits rev::BaseConfig.
◆ DetachedEncoderConfig() [1/3]
| rev::detached::DetachedEncoderConfig::DetachedEncoderConfig |
( |
| ) |
|
|
default |
◆ ~DetachedEncoderConfig()
| rev::detached::DetachedEncoderConfig::~DetachedEncoderConfig |
( |
| ) |
|
|
overridedefault |
◆ DetachedEncoderConfig() [2/3]
◆ DetachedEncoderConfig() [3/3]
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ Apply()
Applies settings from another DetachedEncoderConfig 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 DetachedEncoderConfig for method chaining
◆ Inverted()
Set the phase of the encoder.
- Parameters
-
| inverted | The phase of the encoder |
- Returns
- The modified DetachedEncoderConfig object for method chaining
◆ VelocityConversionFactor()
Set the conversion factor for the velocity of the encoder. Velocity is returned in native units of rotations per minute and will be multiplied by this conversion factor.
- Parameters
-
| factor | The conversion factor to multiply the native units by |
- Returns
- The modified DetachedEncoderConfig object for method chaining
◆ VelocityAverageDepth()
Set the sampling depth of the velocity calculation process of the encoder. This value sets the number of samples in the average for velocity readings. This value must be in the range [1, 64]. The default value is 64.
- Parameters
-
| depth | The velocity calculation process's sampling depth |
- Returns
- The modified DetachedEncoderConfig object for method chaining
◆ PositionConversionFactor()
Set the conversion factor for the position of the encoder. Position is returned in native units of rotations and will be multiplied by this conversion factor.
- Parameters
-
| factor | The conversion factor to multiply the native units by |
- Returns
- The modified DetachedEncoderConfig object for method chaining
◆ AngleConversionFactor()
Set the conversion factor for the angle of the encoder. Angle is returned in native units of rotations and will be multiplied by this conversion factor.
- Parameters
-
| factor | The conversion factor to multiply the native units by |
- Returns
- The modified DetachedEncoderConfig object for method chaining
◆ ZeroOffset()
Set the zero offset when using the absolute angle, the position that is reported as zero.
The zero offset is specified as the reported position of the encoder in the desired zero position as if the zero offset was set to 0, the position conversion factor was set to 1, and inverted was set to false.
- Parameters
-
| offset | The zero offset in the range [0, 1) |
- Returns
- The modified DetachedEncoderConfig object for method chaining
◆ ZeroCentered()
Set whether to enable zero-centering when using the absolute angle. If enabled, the position will be reported in the range (-0.5, 0.5], instead of the default range [0, 1), assuming the default units of rotations.
- Parameters
-
| zeroCentered | Whether to enable zero centering |
- Returns
- The modified DetachedEncoderConfig object for method chaining
◆ signals
The documentation for this class was generated from the following files: