MotorVelocityTask
class MotorVelocityTask(var target: Double, val motor: Motor, val encoder: RotaryEncoder, val pid: PID) : Task
Task that controls the velocity of a motor using a PID controller. Stop task using kill function.
Parameters
target
Target Velocity
motor
Motor
encoder
Motor Encoder
pid
PID controller for the velocity