Eye#
Introduction#
The VEX GO Eye Sensor can detect objects and identify their color, brightness, and hue. It also allows you to adjust detection range and lighting settings for more accurate readings.
Below is a list of all available blocks:
set eye light – Turn the Eye’s light on or off.
set eye range – Set the Eye’s detection range.
set eye power – Set the Eye’s light power level.
eye found object? – Checks if the Eye detects an object.
eye detects color? – Checks if the Eye detects a specific color.
eye brightness – Return the brightness detected by the Eye.
eye hue – Return the hue detected by the Eye.
set eye light#
The set eye light block turns the Eye Sensor’s light on or off.
establecer luz de ojo [encendido v]
Parameters |
Description |
---|---|
state |
The state of the sensor’s light:
|
Example
Example coming soon!
set eye range#
The set eye light block sets the detection range on the Eye Sensor. The default range is far.
establecer el ojo en el rango [near v]
Parameters |
Description |
---|---|
range |
The sensor’s detection range:
|
Example
Example coming soon!
set eye power#
The set eye power block sets the brightness of the Eye Sensor’s light. If the light is off, this block will turn it on if the new brightness is not 0%.
Establezca la potencia de la luz ocular al (50)%
Parameters |
Description |
---|---|
brightness |
The new brightness to set the sensor’s light to from 0% to 100%. |
Example
Example coming soon!
eye found object?#
The eye found object? block returns a Boolean indicating whether or not the Eye Sensor detects an object within range.
True – The sensor has detected an object.
False – The sensor has not detected an object.
<¿El ojo encontró un objeto?>
Parameters |
Description |
---|---|
This block has no parameters. |
Example
Example coming soon!
eye detects color?#
The eye detects color? block returns a Boolean indicating whether the Eye Sensor detects a specified color.
True – The sensor detects the specified color.
False – The sensor does not detect the specified color.
<¿El ojo detecta [rojo v]?>
Parameters |
Description |
---|---|
color |
The color to detect:
|
Example
Example coming soon!
eye brightness#
The eye brightness block returns the brightness detected by the Eye Sensor from 0% to 100%.
(brillo ocular en %)
Parameters |
Description |
---|---|
This block has no parameters. |
Example
Example coming soon!
eye hue#
The eye hue block returns the hue detected by the Eye Sensor in degrees from 0 to 359.
(tono de ojos en grados)
Parameters |
Description |
---|---|
This block has no parameters. |
Example
Example coming soon!