Skip to content

Commit 97f11c8

Browse files
authored
Change Galea channels 7 and 8 to EMG (#702)
* Change emg and eeg channels
1 parent 1bc4a2b commit 97f11c8

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed

src/board_controller/brainflow_boards.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -895,9 +895,9 @@ BrainFlowBoards::BrainFlowBoards()
895895
{"timestamp_channel", 27},
896896
{"marker_channel", 28},
897897
{"num_rows", 29},
898-
{"eeg_channels", {7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24}},
899-
{"eeg_names", "Fp1,Fp2,F1,C3,F2,Cz,C4,Pz,P4,O2,P3,O1,X1,X2,X3,X4,X5,X6"},
900-
{"emg_channels", {1, 2, 3, 4}},
898+
{"eeg_channels", {9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24}},
899+
{"eeg_names", "F1,C3,F2,Cz,C4,Pz,P4,O2,P3,O1,X1,X2,X3,X4,X5,X6"},
900+
{"emg_channels", {1, 2, 3, 4, 7, 8}},
901901
{"eog_channels", {5, 6}},
902902
{"other_channels", {25, 26}},
903903
};
@@ -926,9 +926,9 @@ BrainFlowBoards::BrainFlowBoards()
926926
{"timestamp_channel", 27},
927927
{"marker_channel", 28},
928928
{"num_rows", 29},
929-
{"eeg_channels", {7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24}},
930-
{"eeg_names", "Fp1,Fp2,F1,C3,F2,Cz,C4,Pz,P4,O2,P3,O1,X1,X2,X3,X4,X5,X6"},
931-
{"emg_channels", {1, 2, 3, 4}},
929+
{"eeg_channels", {9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24}},
930+
{"eeg_names", "F1,C3,F2,Cz,C4,Pz,P4,O2,P3,O1,X1,X2,X3,X4,X5,X6"},
931+
{"emg_channels", {1, 2, 3, 4, 7, 8}},
932932
{"eog_channels", {5, 6}},
933933
{"other_channels", {25, 26}},
934934
};

src/board_controller/openbci/inc/openbci_gain_tracker.h

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,8 @@ class GaleaV4GainTracker : public OpenBCIGainTracker
221221
{
222222
public:
223223
GaleaV4GainTracker ()
224-
: OpenBCIGainTracker ({4, 4, 4, 4, 4, 4, 12, 12, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
225-
2, 2}) // to be confirmed
224+
: OpenBCIGainTracker ({4, 4, 4, 4, 4, 4, 4, 4, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12,
225+
12, 12, 12, 12, 12}) // to be confirmed
226226
{
227227
channel_letters = std::vector<char> {'1', '2', '3', '4', '5', '6', '7', '8', 'Q', 'W', 'E',
228228
'R', 'T', 'Y', 'U', 'I', 'A', 'S', 'D', 'G', 'H', 'J', 'K', 'L'};
@@ -242,17 +242,13 @@ class GaleaV4GainTracker : public OpenBCIGainTracker
242242
std::copy (current_gains.begin (), current_gains.end (), old_gains.begin ());
243243
for (size_t i = 0; i < current_gains.size (); i++)
244244
{
245-
if (i < 6)
245+
if (i < 8)
246246
{
247247
current_gains[i] = 4;
248248
}
249-
else if ((i == 6) || (i == 7))
250-
{
251-
current_gains[i] = 12;
252-
}
253249
else
254250
{
255-
current_gains[i] = 2;
251+
current_gains[i] = 12;
256252
}
257253
}
258254
}

0 commit comments

Comments
 (0)