DcMotorAttachment
open class DcMotorAttachment(name: String, motor: DcMotor, idlePower: Double, maxPosition: Int, minPosition: Int = 0, direction: DcMotorSimple.Direction = DcMotorSimple.Direction.FORWARD) : Attachment
DcMotorAttachment is an Attachment that controls a motor.
Parameters
name
the name of the attachment
motor
the motor to control
idlePower
the idle power of the motor
maxPosition
the maximum position of the motor
minPosition
the minimum position of the motor