CuttleAnalogEncoder

constructor(revHub: CuttleRevHub, port: Int, offset: Double, maxVoltage: Double)

Parameters

revHub
port

Analog port number

offset

Amount of offset the angle of the encoder in radians

maxVoltage

Voltage of the sensor in its furthest position in milli-volts. This is probably the supply voltage of the sensor.