MotorPositionController

constructor(goal: Double, motor: Motor, enc: RotaryEncoder, useHardwareVelocity: Boolean = true)

Parameters

goal

Initial goal

motor

Motor to be controller

enc

Motor encoder

useHardwareVelocity

Whether velocity should be obtained directly from the encoder