Skip to content

Commit f93e79b

Browse files
authored
ANT Neuro EE511 update (#774)
* updated ANT Neuro EE511 channels * extra check if the correct board is connected * clang fix --------- Co-authored-by: Benjamin Dieudonné <[email protected]>
1 parent 4f1c0fb commit f93e79b

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

src/board_controller/ant_neuro/ant_neuro.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,14 @@ int AntNeuroBoard::prepare_session ()
105105
}
106106
impedance_mode = false;
107107
impedance_package_num = 0;
108+
std::string board_name = "AntNeuro" + amp->getType ();
109+
std::string expected_board_name = board_descr["default"]["name"];
110+
if (expected_board_name != board_name)
111+
{
112+
std::string err_msg = "Board name " + expected_board_name +
113+
" does not match board name of connected device " + board_name;
114+
throw exceptions::notFound (err_msg);
115+
}
108116
}
109117
catch (const exceptions::notFound &e)
110118
{

src/board_controller/brainflow_boards.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,13 +1003,14 @@ BrainFlowBoards::BrainFlowBoards()
10031003
{
10041004
{"name", "AntNeuroEE511"},
10051005
{"sampling_rate", 4096},
1006-
{"timestamp_channel", 30},
1007-
{"marker_channel", 31},
1006+
{"timestamp_channel", 32},
1007+
{"marker_channel", 33},
10081008
{"package_num_channel", 0},
1009-
{"num_rows", 32},
1009+
{"num_rows", 34},
10101010
{"eeg_channels", {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24}},
10111011
{"emg_channels", {25, 26, 27, 28}},
1012-
{"other_channels", {29}}
1012+
{"resistance_channels", {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30}},
1013+
{"other_channels", {31}}
10131014
};
10141015
brainflow_boards_json["boards"]["52"]["default"] =
10151016
{

0 commit comments

Comments
 (0)