Classifier
class Classifier(sectorOneSensor: NormalizedColorSensor, sectorTwoSensor: NormalizedColorSensor, sectorThreeSensor: NormalizedColorSensor, gate: Servo, classifier: Servo, rgb: RevBlinkinLedDriver) : Attachment
Classifier is an Attachment that classifies and releases artifacts.
Parameters
sectorOneSensor
the NormalizedColorSensor used to detect the color of the artifact
sectorTwoSensor
the NormalizedColorSensor used to detect the color of the artifact
sectorThreeSensor
the NormalizedColorSensor used to detect the color of the artifact
gate
the Servo used to open and close the gate that releases artifacts from the classifier
classifier
the Servo used to rotate the classifier to different positions
rgb
the LED driver used to control lights in the Classifier
Constructors
Properties
Functions
Link copied to clipboard
Releases all stored artifacts by opening the gate and rotating the classifier.
Link copied to clipboard
Releases an artifact of the specified type by positioning the classifier, opening the gate, and resetting the classifier.
Link copied to clipboard