AnalogInput
- class rev.AnalogInput
Bases:
pybind11_objectGet an instance of AnalogInput by using SparkBase::GetAnalog(SparkAnalogSensor::Mode)}.
- getPosition() float
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().
- Returns:
Position of the sensor in volts
- getVoltage() float
Get the voltage of the analog sensor.
- Returns:
Voltage of the sensor