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

Method get_gyro_channels

cpp_package/src/board_shim.cpp:547–557  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

545}
546
547std::vector<int> BoardShim::get_gyro_channels (int board_id, int preset)
548{
549 int channels[MAX_CHANNELS];
550 int len = 0;
551 int res = ::get_gyro_channels (board_id, preset, channels, &len);
552 if (res != (int)BrainFlowExitCodes::STATUS_OK)
553 {
554 throw BrainFlowException ("failed to get board info", res);
555 }
556 return std::vector<int> (channels, channels + len);
557}
558
559std::vector<int> BoardShim::get_analog_channels (int board_id, int preset)
560{

Callers

nothing calls this directly

Calls 2

get_gyro_channelsFunction · 0.85
BrainFlowExceptionClass · 0.85

Tested by

no test coverage detected