ArduinoMotorCarrier - ENCODER

Represents the 2 quadrature encoders embedded in the carrier board. The two objects are encoder1 and encoder2.

Syntax

encoder1.getRawCount()
encoder2.resetCounter();

Functions

  • getRawCount(): Returns the number of counts from start as an integer.
  • resetCounter(int): Resets counter to a certain value.