Encoder

open class Encoder

Wraps a motor instance to provide corrected velocity counts and allow reversing independently of the corresponding slot's motor direction

Constructors

Link copied to clipboard
open fun Encoder(motor: DcMotorEx, clock: NanoClock)
Link copied to clipboard
open fun Encoder(motor: DcMotorEx)

Types

Link copied to clipboard
enum Direction

Functions

Link copied to clipboard
open fun getCorrectedVelocity(): Double
Link copied to clipboard
open fun getCurrentPosition(): Int
Link copied to clipboard
open fun getRawVelocity(): Double

Properties

Link copied to clipboard
private open var direction: Encoder.Direction