Sensing#
The Sensing pages include all the blocks that allow your VEX IQ (2nd gen) robot to detect and respond to its environment. These blocks report data such as color, distance, orientation, touch, and motion status—enabling sensor-based control and interactivity in both autonomous and driver programs.
Brain Sensing – 检查屏幕光标位置、电池电量和 Brain 按钮按下情况。
保险杠开关 – 检测保险杠传感器当前是否被按下。
触摸 LED – 检测触摸并控制触摸 LED 的颜色、亮度和淡入淡出。
颜色传感器 – 检测颜色、色调、亮度以及是否存在物体。
距离传感器 – 测量物体的距离、速度、大小和接近度。
光学传感器 – 检测物体、颜色、色调、亮度和手势;可以在颜色和手势模式之间切换。