使用控制台#

连接到控制台串行端口#

要打印到控制台,VEX AIR 无人机控制器必须连接到控制台串行端口。

有关连接到控制台串行端口的信息,请打开 MacWindows 的连接控制台串行端口教程。

Illustration showing a VEX AIR Drone controller connected by cable to a laptop, labeled ‘Connecting to the Console Serial Port.’

向控制器发送信息#

发送到控制器文本框中输入您的文本,然后选择发送将字符串发送到控制器。

Monitor window with the Console tab selected, showing an empty Console output area and a highlighted text field labeled ‘Send to Controller,’ with Send, Clear, Save, and Copy to Clipboard buttons.

您可以使用 BlocksPythonConsole 类别中的以下命令处理发送的信息:

询问并等待块。#
询问 [What's your name?] 并等待
答案块。#
应答
answer = input("What's your name?")

从控制台保存#

选择保存将所有控制台信息保存为.txt文件。

Console window displaying text output including a prompt and response, with the Save button highlighted below the console.

从控制台复制#

选择复制到剪贴板将所有控制台信息保存到剪贴板。

Console window displaying text output, with the Copy to Clipboard button highlighted below the console.

清除控制台#

选择CLEAR以清除控制台中的所有信息。

Console window displaying text output, with the Clear button highlighted below the console.