Encoder
A wrapper for motor encoders in the FTC SDK.
Parameters
getPosition
the position supplier which points to the current position of the motor in ticks
getVelocity
the position supplier which points to the current velocity of the motor in ticks per second
Constructors
Link copied to clipboard
Constructs an encoder from the provided id of the corresponding motor.
Properties
Link copied to clipboard
The distance traveled by the encoder computed using distancePerTick.
Link copied to clipboard
The distance per revolution of the encoder.
Link copied to clipboard
The velocity of the encoder in units per second computed using distancePerTick.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Reverses the encoder.
Link copied to clipboard