Interface AnalogInput
- All Known Implementing Classes:
SparkAnalogSensor
public interface AnalogInput
Get an instance of this interface by using
SparkBase.getAnalog().-
Method Summary
Modifier and TypeMethodDescriptionGet the position of the sensor.Get the voltage of the analog sensor.
-
Method Details
-
getVoltage
-
getPosition
Get the position of the sensor. Returns value in the native unit of 'volt' by default, and can be changed by a scale factor usingAnalogSensorConfig.positionConversionFactor(double).- Returns:
- Position of the sensor
-