#include <SparkAnalogSensor.h>
Inherits rev::AnalogInput.
◆ SparkAnalogSensor() [1/2]
◆ SparkAnalogSensor() [2/2]
◆ ~SparkAnalogSensor()
rev::spark::SparkAnalogSensor::~SparkAnalogSensor |
( |
| ) |
|
|
overridedefault |
◆ operator=()
◆ GetVoltage()
double SparkAnalogSensor::GetVoltage |
( |
| ) |
const |
|
overridevirtual |
Get the voltage of the analog sensor.
- Returns
- Voltage of the sensor
Implements rev::AnalogInput.
◆ GetPosition()
double SparkAnalogSensor::GetPosition |
( |
| ) |
const |
|
overridevirtual |
Get the position of the sensor. Returns value in the native unit of 'volt' by default, and can be changed by a scale factor using setPositionConversionFactor().
- Returns
- Position of the sensor in volts
Implements rev::AnalogInput.
◆ GetVelocity()
double SparkAnalogSensor::GetVelocity |
( |
| ) |
const |
Get the velocity of the sensor. Returns value in the native units of 'volts per second' by default, and can be changed by a scale factor using setVelocityConversionFactor().
- Returns
- Velocity of the sensor in volts per second
◆ SparkBase
The documentation for this class was generated from the following files: