(
boardId: BoardIds, preset = BrainFlowPresets.DEFAULT_PRESET)
| 577 | } |
| 578 | |
| 579 | public static getAccelChannels( |
| 580 | boardId: BoardIds, preset = BrainFlowPresets.DEFAULT_PRESET): number[] |
| 581 | { |
| 582 | const numChannels = [0]; |
| 583 | const сhannels = [...new Array (512).fill(0)]; |
| 584 | const res = BoardControllerDLL.getInstance().getAccelChannels( |
| 585 | boardId, preset, сhannels, numChannels); |
| 586 | if (res !== BrainFlowExitCodes.STATUS_OK) |
| 587 | { |
| 588 | throw new BrainFlowError (res, 'Could not get board info'); |
| 589 | } |
| 590 | return сhannels.slice(0, numChannels[0]); |
| 591 | } |
| 592 | |
| 593 | public static getRotationChannels( |
| 594 | boardId: BoardIds, preset = BrainFlowPresets.DEFAULT_PRESET): number[] |
nothing calls this directly
no test coverage detected