getAnalogEncoder

open fun getAnalogEncoder(port: Int, offset: Double, voltage: Double): CuttleAnalogEncoder

Return a configured analog encoder

Parameters

port

The analog port that the encoder is connected to

offset

The offset of the analog port

voltage

Voltage of the sensor at its positive extreme. This is probably the supply voltage of the sensor.