Interface AnalogInput

All Known Implementing Classes:
SparkAnalogSensor

public interface AnalogInput
Get an instance of this interface by using SparkBase.getAnalog().
  • Method Details

    • getVoltage

      Signal<Double> getVoltage()
      Get the voltage of the analog sensor.
      Returns:
      Voltage of the sensor.
    • getPosition

      Signal<Double> getPosition()
      Get the position of the sensor. Returns value in the native unit of 'volt'.
      Returns:
      Position of the sensor