#include <AnalogInput.h>
Inherited by rev::spark::SparkAnalogSensor.
Get an instance of AnalogInput by using SparkBase::GetAnalog(SparkAnalogSensor::Mode)}.
◆ ~AnalogInput()
virtual rev::AnalogInput::~AnalogInput |
( |
| ) |
|
|
inlinevirtual |
◆ GetVoltage()
virtual double rev::AnalogInput::GetVoltage |
( |
| ) |
const |
|
pure virtual |
◆ GetPosition()
virtual double rev::AnalogInput::GetPosition |
( |
| ) |
const |
|
pure virtual |
Get the position of the motor. 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
Implemented in rev::spark::SparkAnalogSensor.
◆ spark::SparkAnalogSensor
The documentation for this class was generated from the following file: