Launcher
class Launcher(leftMotor: DcMotorEx, rightMotor: DcMotorEx, distanceSensor: DistanceSensor, leftPIDFCoefficients: PIDFCoefficients, rightPIDFCoefficients: PIDFCoefficients, maxVelocity: Double, targetVelocity: Double, velocityTolerance: Double = 40.0) : Attachment
Launcher is an Attachment that controls a dual motor flywheel launcher.
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
Constructors
Properties
Link copied to clipboard
the average time taken to spin up to target velocity
Link copied to clipboard
the average difference in velocity between the left and right motors
Link copied to clipboard
the current target velocity of the launcher motors
Link copied to clipboard
whether either motor is overheating
Link copied to clipboard
Link copied to clipboard
the difference in velocity between the left and right motors