This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
wiki:v2:pixy_lego_block [2019/01/29 23:12] pixycam |
wiki:v2:pixy_lego_block [2019/08/23 21:04] pixycam |
||
---|---|---|---|
Line 97: | Line 97: | ||
5. **Lamp**: turns the lamp on or off. | 5. **Lamp**: turns the lamp on or off. | ||
6. **Vector**: outputs the X coordinate of the head of the Vector. The value ranges between 0 (far left of the image) to 128 (far right of | 6. **Vector**: outputs the X coordinate of the head of the Vector. The value ranges between 0 (far left of the image) to 128 (far right of | ||
- | the image). If no Vector is detected, the value will be -1. | + | the image). If no Vector is detected, the value will be -1. Refer [[wiki:v2:line_tracking#detecting-and-tracking-lines|here]] for a description of the Vector. |
7. **Vector Reversed**: outputs true if the Vector is pointing down instead of up. This usually indicates that your robot needs to reverse its direction in order to follow the Vector. | 7. **Vector Reversed**: outputs true if the Vector is pointing down instead of up. This usually indicates that your robot needs to reverse its direction in order to follow the Vector. | ||
- | 8. **Barcode**: outputs the numerical value of a detected barcode (0 through 15). If no barcodes are detected, the value will be -1. If more than one barcode is detected in the image, the value of the barcode closest to the bottom of the image will be returned. | + | 8. **Barcode**: outputs the numerical value of a detected barcode (0 through 15). If no barcodes are detected, the value will be -1. If more than one barcode is detected in the image, the value of the barcode closest to the bottom of the image will be returned. Refer [[wiki:v2:line_tracking#barcodes|here]] for examples of barcodes, and [[https://pixycam.com/downloads-pixy2/|here]] to download barcode images. |
- | 9. **Intersection**: outputs the number branches in a detected intersection (3 through 6) -- note, a "T" intersection is the minimum number of branches an intersection can have (3). If no intersection is detected, the value will be -1. | + | 9. **Intersection**: outputs the number branches in a detected intersection (3 through 6) -- note, a "T" intersection is the minimum number of branches an intersection can have (3). If no intersection is detected, the value will be -1. Refer [[wiki:v2:line_tracking#detecting-intersections-and-branching|here]] for examples of barcodes. |
Line 130: | Line 130: | ||
The Pixy2 RGB sensing is shown below, with labels showing the different inputs and outputs. | The Pixy2 RGB sensing is shown below, with labels showing the different inputs and outputs. | ||
- | {{wiki:v1:image_728.png}} | + | {{wiki:v2:image_894.png}} |
Line 140: | Line 140: | ||
4. **Y**: Y location input, can range between 0 and 255 (see coordinate diagram below). | 4. **Y**: Y location input, can range between 0 and 255 (see coordinate diagram below). | ||
5. **Lamp**: turns the lamp on or off. | 5. **Lamp**: turns the lamp on or off. | ||
- | 6. **Red**: outputs the red value of the pixel at the specified image location. Value can range between 0 to 255. | + | 6. **Saturation**: if true, Pixy will "saturate" the colors so they are easier to distinguish (reds are redder, blues are bluer, etc.) If false, the raw RGB values will returned. |
- | 7. **Green**: outputs the green value of the pixel at the specified image location. Value can range between 0 to 255. | + | 7. **Red**: outputs the red value of the pixel at the specified image location. Value can range between 0 to 255. |
- | 8. **Blue**: outputs the blue value of the pixel at the specified image location. Value can range between 0 to 255. | + | 8. **Green**: outputs the green value of the pixel at the specified image location. Value can range between 0 to 255. |
+ | 9. **Blue**: outputs the blue value of the pixel at the specified image location. Value can range between 0 to 255. | ||