Esempio n. 1
0
 /// <summary>
 /// get row indices which hold gyro data
 /// </summary>
 /// <param name="board_id"></param>
 /// <returns>array of row nums</returns>
 /// <exception cref="BrainFlowException">If this board has no such data exit code is UNSUPPORTED_BOARD_ERROR</exception>
 public static int[] get_gyro_channels (int board_id)
 {
     int[] len = new int[1];
     int[] channels = new int[512];
     int res = BoardControllerLibrary.get_gyro_channels (board_id, channels, len);
     if (res != (int)CustomExitCodes.STATUS_OK)
     {
         throw new BrainFlowException (res);
     }
     int[] result = new int[len[0]];
     for (int i = 0; i < len[0]; i++)
     {
         result[i] = channels[i];
     }
     return result;
 }