|
REVLib - C++
|
#include <AnalogInput.h>
Public Member Functions | |
| virtual | ~AnalogInput () |
| virtual util::Signal< double > | GetVoltage () const =0 |
| virtual util::Signal< double > | GetPosition () const =0 |
Friends | |
| class | spark::SparkAnalogSensor |
Get an instance of AnalogInput by using SparkBase::GetAnalog(SparkAnalogSensor::Mode)}.
|
inlinevirtual |
|
pure virtual |
Get the voltage of the analog sensor.
Implemented in rev::spark::SparkAnalogSensor.
|
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 AnalogSensorConfig::PositionConversionFactor().
Implemented in rev::spark::SparkAnalogSensor.
|
friend |