Camera#
Introduction#
The VEX AIR Hornet includes two Vision Sensors that serve as its onboard cameras—one on the front and one on the bottom. These can capture both images and video during flight. In VEXcode AIR, the word “camera” always refers to one of these Vision Sensors. For instance, when forward and downward cameras are parameter options, they are referring to the forward facing Vision Sensor and the downward facing Vision Sensor.
Below is a list of available blocks:
Video
show/hide camera video - Shows or hides camera feed on the controller.
Overlay
overlay reticle - Shows or hides the overlay reticle.
overlay vision objects - Shows or hides vision objects.
overlay telemetry - Shows or hides telemetry data.
Capture
start recording - Records a video from a Vision Sensor.
stop recording - Stops recording a video from a Vision Sensor.
capture image - Captures an image from a Vision Sensor.
is camera recording? - Returns whether the Vision Sensor is recording.
Video#
show/hide camera video#
The show/hide camera video block shows or hides the feed of the specified Vision Sensor.
[show v] [forward v] camera video on screen
Parameters |
Description |
---|---|
state |
The state of the camera feed:
|
camera |
The Vision Sensor’s feed to use:
|
Example
Example coming soon!
Overlay#
overlay reticle#
The overlay reticle block shows or hides the overlay reticle.
overlay [show v] reticle on video
Parameters |
Description |
---|---|
state |
The state of the overlay reticle:
|
Example
Example coming soon!
overlay vision objects#
Documentation Coming Soon
overlay telemetry#
The overlay telemetry block enables or disables the visibility of telemetry data on the controller’s screen.
overlay [show v] telemetry on video
Parameters |
Description |
---|---|
state |
The state of the telemetry data:
|
Example
Example coming soon!
Capture#
start recording#
The start recording block starts a recording with the specified Vision Sensor.
start recording on [forward v] camera
Parameters |
Description |
---|---|
camera |
The Vision Sensor to record with:
|
Example
Example coming soon!
stop recording#
The stop recording block stops the recording of the specified Vision Sensor.
stop recording on [forward v] camera
Parameters |
Description |
---|---|
camera |
The Vision Sensor to stop recording with:
|
Example
Example coming soon!
capture image#
The capture image block takes a picture with the specified Vision Sensor.
capture image on [forward v] camera
Parameters |
Description |
---|---|
camera |
The Vision Sensor to take a picture with:
|
Example
Example coming soon!
is camera recording?#
The is camera recording? block returns a Boolean indicating whether the specified Vision Sensor is currently recording.
True – The Vision Sensor is recording.
False – The Vision Sensor is not recording.
<is [forward v] camera recording?>
Parameters |
Description |
---|---|
camera |
The Vision Sensor to check the recording status of:
|
Example
Example coming soon!