安慰#
介绍#
以下是所有方法的列表:
操作——与控制台交互。
Mutators – 更改控制台中的文本颜色。
set_print_color – 设置控制台中显示的文本颜色。
监控——在 VEXcode 的监控选项卡中监控项目期间传感器或变量的值。
monitor_sensor – 在“监控”选项卡中添加传感器。
monitor_variable – 向“监视”选项卡添加预定义变量。
行动#
print#
print
prints values in the console using the current cursor position.
Usage:
console.print(value, precision)
参数 |
描述 |
---|---|
|
要打印为字符串或数字的值。 |
|
可选。指定打印的小数位数。默认值为 0。 |
# Example coming soon
new_line#
new_line
moves the cursor to the start of the row below the current position in the Console.
Usage:
console.new_line()
参数 |
描述 |
---|---|
该方法没有参数。 |
# Example coming soon
clear#
clear
clears all text from the Console.
Usage:
console.clear()
参数 |
描述 |
---|---|
该方法没有参数。 |
# Example coming soon
修改器#
set_print_color#
set_print_color
sets the color used when printing text to the Console.
Usage:
set_print_color(color)
参数 |
描述 |
---|---|
|
The color to print text with:
|
# Example coming soon
监视器#
monitor_sensor#
monitor_sensor
adds a sensor value to be monitored in the Monitor tab of VEXcode.
Usage:
monitor_sensor(“sensor”)
参数 |
描述 |
---|---|
|
Which sensor to monitor, given as a string:
|
# Example coming soon
monitor_variable#
monitor_variable
adds a predefined variable to be monitored in the Monitor tab of VEXcode.
Usage:
monitor_variable(“variable”)
参数 |
描述 |
---|---|
|
要监视的预定义变量的名称,以字符串形式给出。 |
# Example coming soon