#include <AnalogSensorConfig.h>
Inherits rev::spark::BaseConfig.
◆ AnalogSensorConfig() [1/3]
rev::spark::AnalogSensorConfig::AnalogSensorConfig |
( |
| ) |
|
|
default |
◆ ~AnalogSensorConfig()
rev::spark::AnalogSensorConfig::~AnalogSensorConfig |
( |
| ) |
|
|
overridedefault |
◆ AnalogSensorConfig() [2/3]
◆ AnalogSensorConfig() [3/3]
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ Apply()
Applies settings from another AnalogSensorConfig 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 AnalogSensorConfig for method chaining
◆ Inverted()
Set the phase of the analog sensor so that it is in phase with the motor itself.
- Parameters
-
inverted | The phase of the analog sensor |
- Returns
- The modified AnalogSensorConfig object for method chaining
◆ PositionConversionFactor()
Set the conversion factor for the position of the analog sensor. Position is returned in native units of volts and will be multiplied by this conversion factor.
- Parameters
-
factor | The conversion factor to multiply the native units by |
- Returns
- The modified AnalogSensorConfig object for method chaining
◆ VelocityConversionFactor()
Set the conversion factor for the velocity of the analog sensor. Velocity is returned in native units of volts per second and will be multiplied by this conversion factor.
- Parameters
-
factor | The conversion factor to multiply the native units by |
- Returns
- The modified AnalogSensorConfig object for method chaining
The documentation for this class was generated from the following files: