机器人#

简介#

机器人类别允许您查看有关 VEX AIM 编程机器人的重要详细信息,包括其名称和电池百分比。

以下是所有模块的列表:

  • battery level — Reports the robot’s current battery percentage.

  • robot name — Reports the robot’s set name as a string.

电池电量#

The battery level reporter block reports the robot’s battery level, as a percentage from 0% to 100%.

电池电量百分比报告指令块。#
(battery level in %)

参数

描述

该指令块没有参数。

一组以“当开始”指令块开头的指令段,随后是注释块,内容为“获取电池电量并显示”。接着,一个打印指令块在屏幕上显示电池电量百分比。#
when started
[Display the robot's current battery.]
print (battery level in %) on screen ▶

机器人名称#

The robot name reporter block reports the robot’s set name as a string.

获取机器人名称的报告指令块。#
(robot name)

参数

描述

该指令块没有参数。

一组以“当开始”指令块开头的指令段,随后是注释块,内容为“获取电池电量并显示”。接着,一个打印指令块在屏幕上显示电池电量百分比。#
when started
[Display the robot's set name.]
print (robot name) on screen ▶