Enums#

Analog Units#

Name

C++ Enum

Description

Range 8-bit

range8bit or analogUnits::range8bit

Encodes the value as an 8-bit integer from 0 to 255.

Range 10-bit

range10bit or analogUnits::range10bit

Encodes the value as a 10-bit integer from 0 to 1023.

Range 12-bit

range12bit or analogUnits::range12bit

Encodes the value as a 12-bit integer from 0 to 4095.

Millivolts

analogUnits::mV

Measures the value of the analog input in millivolts.

Axis Types#

Name

C++ Enum

Description

X-Axis

xaxis or axisType::xaxis

Sets the command to generate values based on the X-Axis.

Y-Axis

yaxis or axisType::yaxis

Sets the command to generate values based on the Y-Axis.

Z-Axis

zaxis or axisType::zaxis

Sets the command to generate values based on the Z-Axis.

Brake Types#

Name

C++ Enum

Description

Coast

coast or brakeType::coast

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

Brake

brake or brakeType::brake

The brake mode stops the motor immediately.

Hold

hold or brakeType::hold

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

Color Types#

Name

C++ Enum

Description

Black

black or colorType::black

The predefined color constant for black as the RGB value: (0, 0, 0).

White

white or colorType::white

The predefined color constant for white as the RGB value: (255, 255, 255).

Red

red or colorType::red

The predefined color constant for red as the RGB value: (255, 0, 0).

Green

green or colorType::green

The predefined color constant for green as the RGB value: (0, 255, 0).

Blue

blue or colorType::blue

The predefined color constant for blue as the RGB value: (0, 0, 255).

Yellow

yellow or colorType::yellow

The predefined color constant for yellow as the RGB value: (255, 255, 0).

Orange

orange or colorType::orange

The predefined color constant for orange as the RGB value: (255, 165, 0).

Purple

purple or colorType::purple

The predefined color constant for purple as the RGB value: (255, 0, 255).

Cyan

cyan or colorType::cyan

The predefined color constant for cyan as the RGB value: (0, 255, 255).

Transparent

transparent or colorType::transparent

The predefined color constant for transparent.

Controller Types#

Name

C++ Enum

Description

Primary

primary or controllerType::primary

Sets a EXP controller as the primary controller when initializing a controller.

Partner

partner or controllerType::partner

Sets a EXP controller as the partner controller when initializing a controller.

Cylinder Type#

Name

C++ Enum

Description

Cylinder 1

cylinder1 or cylinderType::cylinder1

The first pneumatic cylinder.

Cylinder 2

cylinder2 or cylinderType::cylinder2

The second pneumatic cylinder.

Cylinder 3

cylinder3 or cylinderType::cylinder3

The third pneumatic cylinder.

Cylinder 4

cylinder4 or cylinderType::cylinder4

The fourth pneumatic cylinder.

Cylinder All

cylinderAll or cylinderType::cylinderAll

All pneumatic cylinders.

Direction Types#

Name

C++ Enum

Description

Forward

forward, fwd, or directionType::fwd

Sets the direction for a motor or drivetrain to move to forward.

Reverse

reverse or directionType::rev

Sets the direction for a motor or drivetrain to move to reverse.

Distance Units#

Name

C++ Enum

Description

Inches

inches or distanceUnits::inches

Measures the value of the distance in inches.

Millimeters

mm or distanceUnits::mm

Measures the value of the distance in millimeters.

Centimeters

distanceUnits::cm

Measures the value of the distance in centimeters.

End Effector Types#

Name

C++ Enum

Description

Magnet

magnet or arm::endEffectorType::magnet

The magnet end effector for the 6-Axis CTE Arm.

Pen

pen or arm::endEffectorType::pen

The pen end effector for the 6-Axis CTE Arm.

Font Types#

There are two different types of fonts available on the EXP Brain’s screen:

  • 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.

Name

C++ Enum

Description

Mono 12

mono12 or fontType::mono12

The predefined monotype font of size 12.

Mono 15

mono15 or fontType::mono15

The predefined monotype font of size 15.

Mono 20

mono20 or fontType::mono20

The predefined monotype font of size 20.

Mono 30

mono30 or fontType::mono30

The predefined monotype font of size 30.

Mono 40

mono40 or fontType::mono40

The predefined monotype font of size 40.

Mono 60

mono60 or fontType::mono60

The predefined monotype font of size 60.

Prop 20

prop20 or fontType::prop20

The predefined proportional font of size 20.

Prop 30

prop30 or fontType::prop30

The predefined proportional font of size 30.

Prop 40

prop40 or fontType::prop40

The predefined proportional font of size 40.

Prop 60

prop60 or fontType::prop60

The predefined proportional font of size 60.

CJK16

cjk16 or fontType::cjk16

The predefined font for a Chinese/Japanese/Korean font of size 16.

Gear Setting#

Name

C++ Enum

Description

Ratio 36:1

ratio36_1 or gearSetting::ratio36_1

The constant to represent a 36:1 gear ratio. A red gearbox for an EXP SmartMotor.

Ratio 18:1

ratio18_1 or gearSetting::ratio18_1

The constant to represent a 18:1 gear ratio. A green gearbox for an EXP SmartMotor.

Ratio 6:1

ratio6_1 or gearSetting::ratio6_1

The constant to represent a 6:1 gear ratio. A blue gearbox for an EXP SmartMotor.

LED State Types#

Name

C++ Enum

Description

On

ledState::on

Sets the command to turn on the optical sensor’s LED.

Off

ledState::off

Sets the command to turn off the optical sensor’s LED.

Object Types#

Name

C++ Enum

Description

Color

objectType::colorObject

The constant to represent a color object type for the AI Vision Sensor.

Code

objectType::codeObject

The constant to represent a code object type for the AI Vision Sensor.

Model

objectType::modelObject

The constant to represent a model object type for the AI Vision Sensor.

Tag

objectType::tagObject

The constant to represent a tag object type for the AI Vision Sensor.

All

objectType::allObject

The constant to represent all object types for the AI Vision Sensor.

Orientation Types#

Name

C++ Enum

Description

Roll

roll or orientationType::roll

Sets the command to generate values based on the roll.

Pitch

pitch or orientationType::pitch

Sets the command to generate values based on the pitch.

Yaw

yaw or orientationType::yaw

Sets the command to generate values based on the yaw.

Ports#

Name

C++ Enum

Description

Port 1

PORT1

Sets the port that device is connected to on the EXP Brain to port 1.

Port 2

PORT2

Sets the port that device is connected to on the EXP Brain to port 2.

Port 3

PORT3

Sets the port that device is connected to on the EXP Brain to port 3.

Port 4

PORT4

Sets the port that device is connected to on the EXP Brain to port 4.

Port 5

PORT5

Sets the port that device is connected to on the EXP Brain to port 5.

Port 6

PORT6

Sets the port that device is connected to on the EXP Brain to port 6.

Port 7

PORT7

Sets the port that device is connected to on the EXP Brain to port 7.

Port 8

PORT8

Sets the port that device is connected to on the EXP Brain to port 8.

Port 9

PORT9

Sets the port that device is connected to on the EXP Brain to port 9.

Port 10

PORT10

Sets the port that device is connected to on the EXP Brain to port 10.

Rotation Units#

Name

C++ Enum

Description

Degrees

degrees, deg, or rotationUnits::deg

Expresses the rotation value as a degree.

Turns

turns, rev, or rotationUnits::rev

Expresses the rotation value in revolutions.

Signal Tower Color Types#

Name

Python Enum

Description

All

signaltower::all

All LED lights in the Signal Tower.

Red

signaltower::red

The red LED light in the Signal Tower.

Green

signaltower::green

The green LED light in the Signal Tower.

Blue

signaltower::blue

The blue LED light in the Signal Tower.

Yellow

signaltower::yellow

The yellow LED light in the Signal Tower.

White

signaltower::white

The white LED light in the Signal Tower.

Signal Tower State Types#

Name

Python Enum

Description

Off

signaltower::off

The state where an LED light on the signal tower is off.

On

signaltower::on

The state where an LED light on the signal tower is on.

Blink

signaltower::blink

The state where an LED light on the signal tower is blinking on and off.

Sound Types#

Name

C++ Enum

Description

Siren

siren or soundType::siren

Sets the sound that the EXP Brain will play to siren.

Wrong Way

wrongWay or soundType::wrongWay

Sets the sound that the EXP Brain will play to wrong way.

Wrong Way Slow

wrongWaySlow or soundType::wrongWaySlow

Sets the sound that the EXP Brain will play to wrong way slow.

Fillup

fillup or soundType::fillup

Sets the sound that the EXP Brain will play to fillup.

Headlights On

headlightsOn or soundType::headlightsOn

Sets the sound that the EXP Brain will play to headlights on.

Headlights Off

headlightsOff or soundType::headlightsOff

Sets the sound that the EXP Brain will play to headlights off.

Toll Booth

tollBooth or soundType::tollBooth

Sets the sound that the EXP Brain will play to toll booth.

Alarm

alarm or soundType::alarm

Sets the sound that the EXP Brain will play to alarm.

Tada

tada or soundType::tada

Sets the sound that the EXP Brain will play to tada.

Door Close

doorClose or soundType::doorClose

Sets the sound that the EXP Brain will play to door close.

Ratchet

ratchet or soundType::ratchet

Sets the sound that the EXP Brain will play to ratchet.

Wrench

wrench or soundType::wrench

Sets the sound that the EXP Brain will play to wrench.

Siren 2

siren2 or soundType::siren2

Sets the sound that the EXP Brain will play to siren 2.

Ratchet 2

ratchet2 or soundType::ratchet2

Sets the sound that the EXP Brain will play to ratchet 2.

Alarm 2

alarm2 or soundType::alarm2

Sets the sound that the EXP Brain will play to alarm 2.

Power Down

powerDown or soundType::powerDown

Sets the sound that the EXP Brain will play to power down.

Temperature Units#

Name

C++ Enum

Description

Celsius

celsius or temperatureUnits::celsius

Expresses the temperature value in degrees Celsius.

Fahrenheit

fahrenheit or temperatureUnits::fahrenheit

Expresses the temperature value in degrees Fahrenheit.

Time Units#

Name

C++ Enum

Description

Seconds

seconds, sec, or timeUnits::sec

Counts the time value in seconds.

Milliseconds

msec or timeUnits::msec

Counts the time value in milliseconds.

Torque Units#

Name

C++ Enum

Description

Newton Meters

Nm or torqueUnits::Nm

Expresses the torque value in newton meters.

Inch Pounds

InLb or torqueUnits::InLb

Expresses the torque value in inch pounds.

Turn Types#

Name

C++ Enum

Description

Left

left or turnType::left

Sets the command to turn to the left.

Right

right or turnType::right

Sets the command to turn to the right.

Velocity Units#

Name

C++ Enum

Description

Rotations per Minute

rpm or velocityUnits::rpm

Expresses the velocity value in rotations per minute.

Degrees per Second

dps or velocityUnits::dps

Expresses the velocity value in degrees per second.

Voltage Units#

Name

C++ Enum

Description

Volt

volt or voltageUnits::volt

Expresses the voltage in volts.

Millivolt

voltageUnits::mV

Expresses the voltage in millivolts.