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

Overlay

Capture

Video#

show/hide camera video#

The show/hide camera video block shows or hides the feed of the specified Vision Sensor.

move forward stack block#
    [show v] [forward v] camera video on screen

Parameters

Description

state

The state of the camera feed:

  • show
  • hide

camera

The Vision Sensor’s feed to use:

  • forward
  • downward

Example

Example coming soon!

Overlay#

overlay reticle#

The overlay reticle block shows or hides the overlay reticle.

move forward stack block#
    overlay [show v] reticle on video

Parameters

Description

state

The state of the overlay reticle:

  • show
  • hide

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.

move forward stack block#
    overlay [show v] telemetry on video

Parameters

Description

state

The state of the telemetry data:

  • show
  • hide

Example

Example coming soon!

Capture#

start recording#

The start recording block starts a recording with the specified Vision Sensor.

move forward stack block#
    start recording on [forward v] camera

Parameters

Description

camera

The Vision Sensor to record with:

  • forward
  • downward

Example

Example coming soon!

stop recording#

The stop recording block stops the recording of the specified Vision Sensor.

move forward stack block#
    stop recording on [forward v] camera

Parameters

Description

camera

The Vision Sensor to stop recording with:

  • forward
  • downward

Example

Example coming soon!

capture image#

The capture image block takes a picture with the specified Vision Sensor.

move forward stack block#
    capture image on [forward v] camera

Parameters

Description

camera

The Vision Sensor to take a picture with:

  • forward
  • downward

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.

move forward stack block#
    <is [forward v] camera recording?>

Parameters

Description

camera

The Vision Sensor to check the recording status of:

  • forward
  • downward

Example

Example coming soon!