(
boardId: BoardIds, preset = BrainFlowPresets.DEFAULT_PRESET)
| 605 | } |
| 606 | |
| 607 | public static getAnalogChannels( |
| 608 | boardId: BoardIds, preset = BrainFlowPresets.DEFAULT_PRESET): number[] |
| 609 | { |
| 610 | const numChannels = [0]; |
| 611 | const сhannels = [...new Array (512).fill(0)]; |
| 612 | const res = BoardControllerDLL.getInstance().getAnalogChannels( |
| 613 | boardId, preset, сhannels, numChannels); |
| 614 | if (res !== BrainFlowExitCodes.STATUS_OK) |
| 615 | { |
| 616 | throw new BrainFlowError (res, 'Could not get board info'); |
| 617 | } |
| 618 | return сhannels.slice(0, numChannels[0]); |
| 619 | } |
| 620 | |
| 621 | public static getGyroChannels( |
| 622 | boardId: BoardIds, preset = BrainFlowPresets.DEFAULT_PRESET): number[] |
nothing calls this directly
no test coverage detected