Skip to content

Commit 57f7ca0

Browse files
committed
Changes to support -ckt10+ kernels
- Removal of encoder_polarity attribute (tacho motor class) - Rename of stop_command to stop_action (both tacho motor class and dc motor class) - Rename of stop_commands to stop_actions (both tacho motor class and dc motor class)
1 parent 20d4401 commit 57f7ca0

File tree

1 file changed

+9
-18
lines changed

1 file changed

+9
-18
lines changed

spec.json

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"meta": {
3-
"version": "1.1.0",
3+
"version": "1.2.0",
44
"specRevision": 0,
55
"supportedKernel": {
66
"pattern": "{upstream_version}-{kernel}-{flavour}",
77
"kernels": [
8-
"10-ev3dev",
9-
"10-rc1-ev3dev"
8+
"11-ev3dev",
9+
"11-rc1-ev3dev"
1010
]
1111
}
1212
},
@@ -94,15 +94,6 @@
9494
"the motor to rotate in reverse."
9595
]
9696
},
97-
{ "name": "Encoder Polarity", "systemName": "encoder_polarity", "type": "string", "readAccess": true, "writeAccess": true,
98-
"description": [
99-
"Sets the polarity of the rotary encoder. This is an advanced feature to all",
100-
"use of motors that send inversed encoder signals to the EV3. This should",
101-
"be set correctly by the driver of a device. It You only need to change this",
102-
"value if you are using a unsupported device. Valid values are `normal` and",
103-
"`inversed`."
104-
]
105-
},
10697
{ "name": "Full Travel Count", "systemName": "full_travel_count", "type": "int", "readAccess": true, "writeAccess": false,
10798
"description": [
10899
"Returns the number of tacho counts in the full travel of the motor. When",
@@ -212,24 +203,24 @@
212203
"`running`, `ramping` `holding` and `stalled`."
213204
]
214205
},
215-
{ "name": "Stop Command", "systemName": "stop_command", "type": "string", "readAccess": true, "writeAccess": true,
206+
{ "name": "Stop Action", "systemName": "stop_action", "type": "string", "readAccess": true, "writeAccess": true,
216207
"description": [
217-
"Reading returns the current stop command. Writing sets the stop command.",
208+
"Reading returns the current stop action. Writing sets the stop action.",
218209
"The value determines the motors behavior when `command` is set to `stop`.",
219210
"Also, it determines the motors behavior when a run command completes. See",
220-
"`stop_commands` for a list of possible values."
211+
"`stop_actions` for a list of possible values."
221212
]
222213
},
223-
{ "name": "Stop Commands", "systemName": "stop_commands", "type": "string array", "readAccess": true, "writeAccess": false,
214+
{ "name": "Stop Actions", "systemName": "stop_actions", "type": "string array", "readAccess": true, "writeAccess": false,
224215
"description": [
225-
"Returns a list of stop modes supported by the motor controller.",
216+
"Returns a list of stop actions supported by the motor controller.",
226217
"Possible values are `coast`, `brake` and `hold`. `coast` means that power will",
227218
"be removed from the motor and it will freely coast to a stop. `brake` means",
228219
"that power will be removed from the motor and a passive electrical load will",
229220
"be placed on the motor. This is usually done by shorting the motor terminals",
230221
"together. This load will absorb the energy from the rotation of the motors and",
231222
"cause the motor to stop more quickly than coasting. `hold` does not remove",
232-
"power from the motor. Instead it actively try to hold the motor at the current",
223+
"power from the motor. Instead it actively tries to hold the motor at the current",
233224
"position. If an external force tries to turn the motor, the motor will 'push",
234225
"back' to maintain its position."
235226
]

0 commit comments

Comments
 (0)