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

Method getGyroChannels

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

Source from the content-addressed store, hash-verified

619 }
620
621 public static getGyroChannels(
622 boardId: BoardIds, preset = BrainFlowPresets.DEFAULT_PRESET): number[]
623 {
624 const numChannels = [0];
625 const сhannels = [...new Array (512).fill(0)];
626 const res = BoardControllerDLL.getInstance().getGyroChannels(
627 boardId, preset, сhannels, numChannels);
628 if (res !== BrainFlowExitCodes.STATUS_OK)
629 {
630 throw new BrainFlowError (res, 'Could not get board info');
631 }
632 return сhannels.slice(0, numChannels[0]);
633 }
634
635 public static getOtherChannels(
636 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