Skip to content

Commit 66a767a

Browse files
committed
Merge pull request #164 from ev3dev/add-state-property-values
Add property value spec for motor state
2 parents 6cfae4e + 3728eef commit 66a767a

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

spec.json

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,36 @@
315315
}
316316
]
317317
},
318+
{
319+
"propertyName": "State",
320+
"values": [
321+
{ "name": "running",
322+
"description": [
323+
"Power is being sent to the motor."
324+
]
325+
},
326+
{ "name": "ramping",
327+
"description": [
328+
"The motor is ramping up or down and has not yet reached a constant output level."
329+
]
330+
},
331+
{ "name": "holding",
332+
"description": [
333+
"The motor is not turning, but rather attempting to hold a fixed position."
334+
]
335+
},
336+
{ "name": "overloaded",
337+
"description": [
338+
"The motor is turning, but cannot reach its `speed_sp`."
339+
]
340+
},
341+
{ "name": "stalled",
342+
"description": [
343+
"The motor is not turning when it should be."
344+
]
345+
}
346+
]
347+
},
318348
{
319349
"propertyName": "Stop Action",
320350
"values": [
@@ -335,7 +365,7 @@
335365
"description": [
336366
"Does not remove power from the motor. Instead it actively try to hold the motor",
337367
"at the current position. If an external force tries to turn the motor, the motor",
338-
"will ``push back`` to maintain its position."
368+
"will `push back` to maintain its position."
339369
]
340370
}
341371
]

0 commit comments

Comments
 (0)