枚举#

模拟单元#

姓名

C++ 枚举

描述

范围 8 位

range8bit or analogUnits::range8bit

将值编码为 0 到 255 之间的 8 位整数。

范围 10 位

range10bit or analogUnits::range10bit

将值编码为 0 到 1023 之间的 10 位整数。

范围 12 位

range12bit or analogUnits::range12bit

将值编码为 0 到 4095 之间的 12 位整数。

毫伏

analogUnits::mV

测量模拟输入的值(以毫伏为单位)。

轴类型#

姓名

C++ 枚举

描述

X轴

xaxis or axisType::xaxis

设置命令以根据 X 轴生成值。

Y轴

yaxis or axisType::yaxis

设置命令以根据 Y 轴生成值。

Z轴

zaxis or axisType::zaxis

设置命令以根据 Z 轴生成值。

刹车类型#

姓名

C++ 枚举

描述

海岸

coast or brakeType::coast

The coast mode allows the motor to gradually come to a stop.

制动

brake or brakeType::brake

The brake mode stops the motor immediately.

抓住

hold or brakeType::hold

The hold mode stops the robot immediately and holds the motor in the stopped position.

颜色类型#

姓名

C++ 枚举

描述

黑色的

black or colorType::black

预定义黑色颜色常量为 RGB 值:(0, 0, 0)。

白色的

white or colorType::white

预定义白色颜色常量为 RGB 值:(255, 255, 255)。

红色的

red or colorType::red

红色的预定义颜色常量为 RGB 值:(255,0,0)。

绿色的

green or colorType::green

预定义绿色颜色常量为 RGB 值:(0, 255, 0)。

蓝色的

blue or colorType::blue

预定义蓝色颜色常量为 RGB 值:(0,0,255)。

黄色的

yellow or colorType::yellow

黄色的预定义颜色常量为 RGB 值:(255,255,0)。

橙子

orange or colorType::orange

橙色的预定义颜色常量为 RGB 值:(255, 165, 0)。

紫色的

purple or colorType::purple

紫色的预定义颜色常量为 RGB 值:(255,0,255)。

青色

cyan or colorType::cyan

青色的预定义颜色常量为 RGB 值:(0,255,255)。

透明的

transparent or colorType::transparent

透明的预定义颜色常量。

控制器类型#

姓名

C++ 枚举

描述

基本的

primary or controllerType::primary

初始化控制器时将 EXP 控制器设置为主控制器。

伙伴

partner or controllerType::partner

初始化控制器时将 EXP 控制器设置为伙伴控制器。

气缸类型#

姓名

C++ 枚举

描述

气缸 1

cylinder1 or cylinderType::cylinder1

第一个气缸。

气缸 2

cylinder2 or cylinderType::cylinder2

第二个气缸。

气缸 3

cylinder3 or cylinderType::cylinder3

第三个气缸。

气缸 4

cylinder4 or cylinderType::cylinder4

第四个气缸。

圆柱体全部

cylinderAll or cylinderType::cylinderAll

所有气缸。

方向类型#

姓名

C++ 枚举

描述

向前

forward, fwd, or directionType::fwd

设置电机或传动系统向前移动的方向。

撤销

reverse or directionType::rev

设置电机或传动系统反向移动的方向。

距离单位#

姓名

C++ 枚举

描述

英寸

inches or distanceUnits::inches

测量距离值(以英寸为单位)。

毫米

mm or distanceUnits::mm

测量距离值(以毫米为单位)。

厘米

distanceUnits::cm

测量距离值(以厘米为单位)。

末端执行器类型#

姓名

C++ 枚举

描述

磁铁

magnet or arm::endEffectorType::magnet

6 轴 CTE 臂的磁铁末端执行器。

pen or arm::endEffectorType::pen

6 轴 CTE 臂的笔端执行器。

字体类型#

EXP Brain 的屏幕上有两种不同类型的字体:

  • mono is for Monotype font, where each character will take up the same width on the screen.

  • prop is for Proportional, where each character will take up different widths on the screen based on that character.

姓名

C++ 枚举

描述

单声道 12

mono12 or fontType::mono12

预定义的 12 号 Monotype 字体。

单声道 15

mono15 or fontType::mono15

预定义的 15 号单型字体。

单声道 20

mono20 or fontType::mono20

预定义的 20 号 Monotype 字体。

单声道 30

mono30 or fontType::mono30

预定义的 Monotype 字体大小为 30。

单声道 40

mono40 or fontType::mono40

预定义的 40 号 Monotype 字体。

单声道 60

mono60 or fontType::mono60

预定义的 60 号 Monotype 字体。

第20号提案

prop20 or fontType::prop20

预定义的比例字体,大小为 20。

第 30 号提案

prop30 or fontType::prop30

预定义的比例字体,大小为 30。

第40号提案

prop40 or fontType::prop40

预定义的比例字体,大小为 40。

60号提案

prop60 or fontType::prop60

预定义的比例字体,大小为 60。

CJK16

cjk16 or fontType::cjk16

预定义字体为 16 号中文/日文/韩文字体。

齿轮设置#

姓名

C++ 枚举

描述

比率 36:1

ratio36_1 or gearSetting::ratio36_1

表示 36:1 齿轮比的常数。红色齿轮箱用于 EXP 智能电机。

比率 18:1

ratio18_1 or gearSetting::ratio18_1

表示 18:1 齿轮比的常数。EXP 智能电机的绿色变速箱。

比例 6:1

ratio6_1 or gearSetting::ratio6_1

表示 6:1 齿轮比的常数。蓝色齿轮箱代表 EXP 智能电机。

LED 状态类型#

姓名

C++ 枚举

描述

ledState::on

设置打开光学传感器 LED 的命令。

离开

ledState::off

设置关闭光学传感器 LED 的命令。

对象类型#

姓名

C++ 枚举

描述

颜色对象

objectType::colorObject

colordesc 对象。

代码对象

objectType::codeObject

一个 codedesc 对象。

模型对象

objectType::modelObject

AI 模型对象,也称为 AI 分类。使用 modelDetection 方法可启用 AI 分类检测。

标签对象

objectType::tagObject

tagdesc

所有对象

objectType::allObject

AI 视觉传感器将寻找所有物体。

方向类型#

姓名

C++ 枚举

描述

roll or orientationType::roll

设置命令以根据滚动生成值。

沥青

pitch or orientationType::pitch

设置命令以根据音高生成值。

偏航

yaw or orientationType::yaw

设置命令以根据偏航角生成值。

端口#

姓名

C++ 枚举

描述

端口 1

PORT1

将设备在 EXP Brain 上连接的端口设置为端口 1。

端口 2

PORT2

将设备在 EXP Brain 上连接的端口设置为端口 2。

端口 3

PORT3

将设备在 EXP Brain 上连接的端口设置为端口 3。

端口 4

PORT4

将设备在 EXP Brain 上连接的端口设置为端口 4。

端口 5

PORT5

将设备在 EXP Brain 上连接的端口设置为端口 5。

端口 6

PORT6

将设备在 EXP Brain 上连接的端口设置为端口 6。

端口 7

PORT7

将设备在 EXP Brain 上连接的端口设置为端口 7。

端口 8

PORT8

将设备在 EXP Brain 上连接的端口设置为端口 8。

端口 9

PORT9

将设备在 EXP Brain 上连接的端口设置为端口 9。

端口 10

PORT10

将设备在 EXP Brain 上连接的端口设置为端口 10。

旋转单位#

姓名

C++ 枚举

描述

degrees, deg, or rotationUnits::deg

以度数表示旋转值。

转弯

turns, rev, or rotationUnits::rev

以转数表示旋转值。

信号塔颜色类型#

姓名

C++ 枚举

描述

全部

signaltower::all

信号塔内的所有 LED 灯。

红色的

signaltower::red

信号塔上的红色 LED 灯。

绿色的

signaltower::green

信号塔上的绿色 LED 灯。

蓝色的

signaltower::blue

信号塔上的蓝色 LED 灯。

黄色的

signaltower::yellow

信号塔上的黄色 LED 灯。

白色的

signaltower::white

信号塔上的白色 LED 灯。

信号塔状态类型#

姓名

C++ 枚举

描述

离开

signaltower::off

信号塔上的LED灯熄灭的状态。

signaltower::on

信号塔上的LED灯亮起的状态。

signaltower::blink

信号塔上的 LED 灯闪烁的状态。

尺寸类型#

姓名

C++ 枚举

描述

没有任何

sizetype::none

未检测到任何物体。

小的

sizetype::small

小型物体。

中等的

sizetype::medium

中等大小的物体。

大的

sizetype::large

大型物体。

声音类型#

姓名

C++ 枚举

描述

警笛

siren or soundType::siren

将 EXP Brain 播放的声音设置为警报器。

错误的方法

wrongWay or soundType::wrongWay

将 EXP Brain 播放的声音设置为错误方式。

错误的方式缓慢

wrongWaySlow or soundType::wrongWaySlow

将 EXP Brain 播放的声音设置为错误的慢速。

填满

fillup or soundType::fillup

设置 EXP Brain 将播放的声音以填充。

前灯打开

headlightsOn or soundType::headlightsOn

设置 EXP Brain 在打开前灯时播放的声音。

前灯关闭

headlightsOff or soundType::headlightsOff

设置 EXP Brain 在关闭前灯时播放的声音。

收费站

tollBooth or soundType::tollBooth

设置 EXP Brain 播放到收费站的声音。

警报

alarm or soundType::alarm

设置 EXP Brain 播放的警报声音。

多田

tada or soundType::tada

将 EXP Brain 将播放的声音设置为 tada。

门关闭

doorClose or soundType::doorClose

设置 EXP Brain 在关门时播放的声音。

棘轮

ratchet or soundType::ratchet

将 EXP Brain 播放的声音设置为棘轮声。

扳手

wrench or soundType::wrench

设置 EXP Brain 将播放的扳手声音。

塞壬2

siren2 or soundType::siren2

将 EXP Brain 播放的声音设置为警报器 2。

《瑞奇 2》

ratchet2 or soundType::ratchet2

将 EXP Brain 播放的声音设置为棘轮 2。

警报 2

alarm2 or soundType::alarm2

将 EXP Brain 播放的声音设置为闹钟 2。

断电

powerDown or soundType::powerDown

设置 EXP Brain 关机时播放的声音。

温度单位#

姓名

C++ 枚举

描述

摄氏度

celsius or temperatureUnits::celsius

以摄氏度表示温度值。

华氏度

fahrenheit or temperatureUnits::fahrenheit

以华氏度表示温度值。

时间单位#

姓名

C++ 枚举

描述

seconds, sec, or timeUnits::sec

以秒为单位计算时间值。

毫秒

msec or timeUnits::msec

以毫秒为单位计算时间值。

扭矩单位#

姓名

C++ 枚举

描述

牛顿米

Nm or torqueUnits::Nm

以牛顿米为单位表示扭矩值。

英寸磅

InLb or torqueUnits::InLb

以英寸磅为单位表示扭矩值。

转弯类型#

姓名

C++ 枚举

描述

左边

left or turnType::left

设置向左转弯的命令。

正确的

right or turnType::right

设置向右转弯的命令。

速度单位#

姓名

C++ 枚举

描述

每分钟转数

rpm or velocityUnits::rpm

以每分钟转数表示速度值。

每秒度数

dps or velocityUnits::dps

以度/秒为单位表示速度值。

电压单位#

姓名

C++ 枚举

描述

伏特

volt or voltageUnits::volt

以伏特为单位表示电压。

毫伏

voltageUnits::mV

以毫伏为单位表示电压。