Search
Preparing search index...
The search index is not available
ev3dev-lang for Node.js
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"motors"
MotorBase
Class MotorBase
Hierarchy
IndexedDevice
MotorBase
Motor
DcMotor
ServoMotor
Index
Constructors
constructor
Properties
_device
Index
connected
device
Dir
Name
device
Index
Regex
device
Root
override
Sys
Class
Dir
Accessors
device
Index
Methods
connect
construct
Property
Path
read
Number
read
Property
read
String
read
String
Array
read
String
Array
AsType
read
String
AsType
read
String
Selector
register
Event
Callback
register
Event
Promise
set
set
Number
set
Property
set
String
Constructors
constructor
new
Motor
Base
(
driverTypeDirName
:
string
, nameConvention
?:
string
, targetAddress
?:
string
, targetDriverName
?:
string
|
string
[]
)
:
MotorBase
Parameters
driverTypeDirName:
string
Optional
nameConvention:
string
Optional
targetAddress:
string
Optional
targetDriverName:
string
|
string
[]
Returns
MotorBase
Properties
Protected
_device
Index
_device
Index
:
number
connected
connected
:
boolean
device
Dir
Name
device
Dir
Name
:
string
Protected
device
Index
Regex
device
Index
Regex
:
RegExp
device
Root
device
Root
:
string
Static
override
Sys
Class
Dir
override
Sys
Class
Dir
:
string
Accessors
device
Index
get
deviceIndex
(
)
:
number
Returns
number
Methods
connect
connect
(
driverName
:
string
, nameConvention
?:
string
, propertyConstraints
?:
object
)
:
void
Parameters
driverName:
string
Optional
nameConvention:
string
Optional
propertyConstraints:
object
[
propertyName:
string
]:
any
Returns
void
Protected
construct
Property
Path
construct
Property
Path
(
property
:
string
, deviceRoot
?:
string
)
:
string
Parameters
property:
string
Optional
deviceRoot:
string
Returns
string
read
Number
read
Number
(
property
:
string
, deviceRoot
?:
string
)
:
number
Parameters
property:
string
Optional
deviceRoot:
string
Returns
number
read
Property
read
Property
(
property
:
string
, deviceRoot
?:
string
)
:
any
Parameters
property:
string
Optional
deviceRoot:
string
Returns
any
read
String
read
String
(
property
:
string
, deviceRoot
?:
string
)
:
string
Parameters
property:
string
Optional
deviceRoot:
string
Returns
string
read
String
Array
read
String
Array
(
property
:
string
, deviceRoot
?:
string
)
:
string
[]
Parameters
property:
string
Optional
deviceRoot:
string
Returns
string
[]
read
String
Array
AsType
read
String
Array
AsType<T>
(
property
:
string
, deviceRoot
?:
string
)
:
T
[]
Type parameters
T
Parameters
property:
string
Optional
deviceRoot:
string
Returns
T
[]
read
String
AsType
read
String
AsType<T>
(
property
:
string
, deviceRoot
?:
string
)
:
T
Type parameters
T
Parameters
property:
string
Optional
deviceRoot:
string
Returns
T
read
String
Selector
read
String
Selector
(
property
:
string
, deviceRoot
?:
string
)
:
string
Parameters
property:
string
Optional
deviceRoot:
string
Returns
string
register
Event
Callback
register
Event
Callback
(
callbackFunction
:
function
, eventPredicate
:
function
, firstTriggerOnly
?:
boolean
, userCallbackData
?:
any
)
:
void
Parameters
callbackFunction:
function
(
err
?:
Error
, userData
?:
any
)
:
void
Parameters
Optional
err:
Error
Optional
userData:
any
Returns
void
eventPredicate:
function
(
userData
?:
any
)
:
boolean
Parameters
Optional
userData:
any
Returns
boolean
Default value
firstTriggerOnly:
boolean
= false
Optional
userCallbackData:
any
Returns
void
register
Event
Promise
register
Event
Promise
(
eventPredicate
:
function
, userCallbackData
?:
any
)
:
Promise
<
any
>
Parameters
eventPredicate:
function
(
userData
?:
any
)
:
boolean
Parameters
Optional
userData:
any
Returns
boolean
Optional
userCallbackData:
any
Returns
Promise
<
any
>
set
set
(
propertyDefs
:
any
)
:
void
Parameters
propertyDefs:
any
Returns
void
set
Number
set
Number
(
property
:
string
, value
:
number
)
:
void
Parameters
property:
string
value:
number
Returns
void
set
Property
set
Property
(
property
:
string
, value
:
any
)
:
any
Parameters
property:
string
value:
any
Returns
any
set
String
set
String
(
property
:
string
, value
:
string
)
:
void
Parameters
property:
string
value:
string
Returns
void
Globals
Internals
"index"
Externals
"extras"
"io"
"motors"
"sensors"
Dc
Motor
Large
Motor
Medium
Motor
Motor
Motor
Base
constructor
_device
Index
connected
device
Dir
Name
device
Index
Regex
device
Root
override
Sys
Class
Dir
device
Index
connect
construct
Property
Path
read
Number
read
Property
read
String
read
String
Array
read
String
Array
AsType
read
String
AsType
read
String
Selector
register
Event
Callback
register
Event
Promise
set
set
Number
set
Property
set
String
Servo
Motor
Generated using
TypeDoc