@@ -195,7 +195,7 @@ class GaleaGainTracker : public OpenBCIGainTracker
195
195
public:
196
196
GaleaGainTracker ()
197
197
: OpenBCIGainTracker ({4 , 4 , 4 , 4 , 4 , 4 , 4 , 4 , 12 , 12 , 12 , 12 , 12 , 12 , 12 , 12 , 12 , 12 , 4 , 4 ,
198
- 4 , 4 , 12 , 12 }) // 8 EMG + 12 EEG + 4 AUX(EMG) + 2 Reserved
198
+ 4 , 4 , 12 , 12 }) // Channels 1-8: EMG, 9-18: EEG, 19-22: AUX(EMG), 23-24: Reserved
199
199
{
200
200
channel_letters = std::vector<char > {' 1' , ' 2' , ' 3' , ' 4' , ' 5' , ' 6' , ' 7' , ' 8' , ' Q' , ' W' , ' E' ,
201
201
' R' , ' T' , ' Y' , ' U' , ' I' , ' A' , ' S' , ' D' , ' G' , ' H' , ' J' , ' K' , ' L' };
@@ -213,27 +213,24 @@ class GaleaGainTracker : public OpenBCIGainTracker
213
213
if ((config.at (0 ) == ' o' ) || (config.at (0 ) == ' d' ))
214
214
{
215
215
std::copy (current_gains.begin (), current_gains.end (), old_gains.begin ());
216
- // 8 EMG + 12 EEG + 4 AUX(EMG) + 2 Reserved
216
+ // Channels 1-8: EMG, 9-18: EEG, 19-22: AUX(EMG), 23-24: Reserved
217
217
for (size_t i = 0 ; i < current_gains.size (); i++)
218
218
{
219
- if (i < 8 ) // EMG channels 0-7
219
+ if (i < 8 ) // Channels 1-8: EMG (indices 0-7)
220
220
{
221
221
current_gains[i] = 4 ;
222
222
}
223
- else if (i < 20 ) // EEG channels 8-19
223
+ else if (i < 18 ) // Channels 9-18: EEG (indices 8-17)
224
224
{
225
225
current_gains[i] = 12 ;
226
226
}
227
- else if (i < 24 ) // AUX channels 20-23 (4 AUX EMG + 2 Reserved )
227
+ else if (i < 22 ) // Channels 19-22: AUX EMG (indices 18-21 )
228
228
{
229
- if (i < 22 ) // AUX EMG channels 20-21
230
- {
231
- current_gains[i] = 4 ;
232
- }
233
- else // Reserved channels 22-23
234
- {
235
- current_gains[i] = 12 ;
236
- }
229
+ current_gains[i] = 4 ;
230
+ }
231
+ else if (i < 24 ) // Channels 23-24: Reserved (indices 22-23)
232
+ {
233
+ current_gains[i] = 12 ;
237
234
}
238
235
}
239
236
}
0 commit comments