Skip to main content Link Menu Expand (external link) Document Search Copy Copied

void resetPosition()

Resets the position of the encoder to 0

Example

rotation rot = rotation(PORT1);
Encoder enc = Encoder(rot);

enc.resetPosition();