MCPcopy Create free account
hub / github.com/brainflow-dev/brainflow / getAccelChannels

Method getAccelChannels

nodejs_package/brainflow/board_shim.ts:579–591  ·  view source on GitHub ↗
(
        boardId: BoardIds, preset = BrainFlowPresets.DEFAULT_PRESET)

Source from the content-addressed store, hash-verified

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[]

Callers

nothing calls this directly

Calls 2

fillMethod · 0.80
getInstanceMethod · 0.45

Tested by

no test coverage detected