Wheel IDE

Online demo »

Component/EV3Motor

Namespace
components.ev3Motor

Constants

The button component module.
Source: lib/modules/components/ev3Motor.whl, line: 8
MODULE_COMPONENT_EV3_MOTOR129

Module calls for the ev3 motor component functions.
Source: lib/modules/components/ev3Motor.whl, line: 11
EV3_MOTOR_COMPONENT_SET_TYPE0
EV3_MOTOR_COMPONENT_SET_PORT1
EV3_MOTOR_COMPONENT_SET_SPEED2
EV3_MOTOR_COMPONENT_SET_VALUE3
EV3_MOTOR_COMPONENT_SET_READY4

Ready color indicator for the motor.
Source: lib/modules/components/ev3Motor.whl, line: 18
EV3_MOTOR_READY_NONE0
EV3_MOTOR_READY_RED1
EV3_MOTOR_READY_YELLOW2
EV3_MOTOR_READY_GREEN3

Properties

These properties can be edited with the property editor in the IDE.

NameTypeDescription
namestringThe component name.
xnumberThe left position of the component inside the parent component.
ynumberThe top position of the component inside the parent component.
zIndexnumberThe depth of the component related to other components in the parent.
portlistA list of selectable ports, options are: A, B, C or D.
devicelistA list of motor types, options are: Medium motor or Large motor.

Procedures

setType
Source: lib/modules/components/ev3Motor.whl, line: 32

Set the type of device.

proc setType(number windowHandle, number componentHandle, number type)
Parameters:
NameTypeDescription
windowHandlenumberThe handle of the window.
componentHandlenumberThe handle of the component.
typenumberThe device type.

setPort
Source: lib/modules/components/ev3Motor.whl, line: 41

Set the port of the device.

proc setPort(number windowHandle, number componentHandle, number port)
Parameters:
NameTypeDescription
windowHandlenumberThe handle of the window.
componentHandlenumberThe handle of the component.
portnumberThe device port.

setSpeed
Source: lib/modules/components/ev3Motor.whl, line: 50

Set the speed bar value.

proc setSpeed(number windowHandle, number componentHandle, number speed)
Parameters:
NameTypeDescription
windowHandlenumberThe handle of the window.
componentHandlenumberThe handle of the component.
speednumberThe speed value in the range of -100..100.

setValue
Source: lib/modules/components/ev3Motor.whl, line: 59

Set the value.

proc setValue(number windowHandle, number componentHandle, number value)
Parameters:
NameTypeDescription
windowHandlenumberThe handle of the window.
componentHandlenumberThe handle of the component.
valuenumberThe value.

setReady
Source: lib/modules/components/ev3Motor.whl, line: 68

Set the ready state.

proc setReady(number windowHandle, number componentHandle, number ready)
Parameters:
NameTypeDescription
windowHandlenumberThe handle of the window.
componentHandlenumberThe handle of the component.
readynumberThe ready state.