CRServoWithPotentiometerAttachment
open class CRServoWithPotentiometerAttachment(name: String, crServo: CRServo, potentiometer: AnalogInput, direction: DcMotorSimple.Direction) : CRServoAttachment
CRServoWithPotentiometerAttachment is an Attachment that controls a crServo with a potentiometer.
Parameters
name
the name of the cr servo
crServo
the cr servo to control
potentiometer
the potentiometer reading the position of the cr servo
direction
the direction of the cr servo
Constructors
Link copied to clipboard
constructor(name: String, crServo: CRServo, potentiometer: AnalogInput, direction: DcMotorSimple.Direction)