Console#

Introduction#

All Console blocks will appear in the VEX AIR Drone Controller’s Mission Logs. These blocks allow you to display text, receive input, and format printed data in real time.

Below is a list of the available blocks:

set cursor to next row on console#

The set cursor to next row on console block moves the cursor to the next row in the controller’s Mission Logs.

set cursor to next row stack block#
    set cursor to next row on console

Parameters

Description

This block has no parameters.

Example

When started, prints ‘Line 1’ on the console, moves the cursor to the next row, and then prints ‘Line 2’.#
    when started :: hat events
    [Display two lines of text.]
    print [Line 1] on console ▶
    set cursor to next row on console
    print [Line 2] on console ▶

clear console#

Documentation Coming Soon

ask and wait & answer#

Documentation Coming Soon

set print precision on console#

The set print precision on console block sets the precision formatting used for displaying numbers in the controller’s Mission Logs. This print precision will apply to all subsequently printed numbers.

set print precision stack block#
    set print precision to [0.1 v] on console

Parameters

Description

precision

Sets the print precision to:

  • 1
  • 0.1
  • 0.01
  • 0.001
  • All Digits

Example

When started, sets print precision to two decimal places and prints 1/3 as 0.33 on the console.#
    when started :: hat events
    [Print 1/3 as 0.33.]
    set print precision to [0.01 v] on console
    print ([1] [math_division v] [3]) on console ▶

set font color on console#

Documentation Coming Soon