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

Method get_accel_channels

cpp_package/src/board_shim.cpp:523–533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

521}
522
523std::vector<int> BoardShim::get_accel_channels (int board_id, int preset)
524{
525 int channels[MAX_CHANNELS];
526 int len = 0;
527 int res = ::get_accel_channels (board_id, preset, channels, &len);
528 if (res != (int)BrainFlowExitCodes::STATUS_OK)
529 {
530 throw BrainFlowException ("failed to get board info", res);
531 }
532 return std::vector<int> (channels, channels + len);
533}
534
535std::vector<int> BoardShim::get_rotation_channels (int board_id, int preset)
536{

Callers

nothing calls this directly

Calls 2

get_accel_channelsFunction · 0.85
BrainFlowExceptionClass · 0.85

Tested by

no test coverage detected