Launcher

constructor(leftMotor: DcMotorEx, rightMotor: DcMotorEx, distanceSensor: DistanceSensor, leftPIDFCoefficients: PIDFCoefficients, rightPIDFCoefficients: PIDFCoefficients, maxVelocity: Double, targetVelocity: Double, velocityTolerance: Double = 40.0)

Parameters

leftMotor

the left DcMotorEx of the Launcher

rightMotor

the right DcMotorEx of the Launcher

distanceSensor

the DistanceSensor used to measure distance to the target

leftPIDFCoefficients

the PIDFCoefficients for the left motor

rightPIDFCoefficients

the PIDFCoefficients for the right motor

maxVelocity

the maximum velocity of the launcher motors

targetVelocity

the target velocity of the launcher motors