getEncoder

open fun getEncoder(port: Int, counts: Double): CuttleEncoder

Return an encoder with port counts, and hub set

Parameters

port

The motor port of the encoder

counts

Number of encoder counts per revolution