setKnownPosition

open fun setKnownPosition(position: Int)

Sets the current (known) position of the encoder to this value.

Note: For motor objects, this value can't be sent to firmware and will be lost after an OpMode switch.

Parameters

position

the known position to set this encoder to