mentalCommandActiveAction
This method is to get or set the active actions for the mental command detection.
If an action is inactive, then the mental command detection won't detect it anymore. Deactivate an action do not erase its trainings from the profile.
Check out adding new commands and deactivating commands in our BCI app.
Parameters
Name | Type | Required | Description |
cortexToken |
| yes | A token returned by authorize. |
status |
| yes | Must be "set" or "get". |
profile |
| no | A profile name. |
session |
| no | A session id returned by createSession. |
actions |
| no | If the status is "set", this parameter is the list of actions to activate. You can't activate more than 4 actions. This doesn't include "neutral". |
You must set one of these 2 parameters: profile or session. Read this for details.
Result
If the status is "get", then the result is an array of strings
that is the list of active actions.
If the status is "set", then the result is an object with these fields:
Name | Type | Description |
actions |
| The active actions. |
message |
| A success message. |
Examples
Get
Set
Last updated