Skip to content

Commit 8b68e6b

Browse files
committed
Remove HeadPlot widget due to multiple bugs, glitches, and performance issues that cannot be easily fixed #1243
1 parent f1053e0 commit 8b68e6b

4 files changed

Lines changed: 3 additions & 1395 deletions

File tree

OpenBCI_GUI/DataProcessing.pde

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -298,24 +298,6 @@ class DataProcessing {
298298
headWidePower[i] = sum/globalChannelCount; // averaging power over all channels
299299
}
300300

301-
// Calculate data used for Headplot
302-
// Find strongest channel
303-
int refChanInd = findMax(data_std_uV);
304-
//println("EEG_Processing: strongest chan (one referenced) = " + (refChanInd+1));
305-
float[] refData_uV = dataProcessingFilteredBuffer[refChanInd]; //use the filtered data
306-
refData_uV = Arrays.copyOfRange(refData_uV, refData_uV.length-((int)fs_Hz), refData_uV.length); //just grab the most recent second of data
307-
// Compute polarity of each channel
308-
for (int channel=0; channel < globalChannelCount; channel++) {
309-
float[] fooData_filt = dataProcessingFilteredBuffer[channel]; //use the filtered data
310-
fooData_filt = Arrays.copyOfRange(fooData_filt, fooData_filt.length-((int)fs_Hz), fooData_filt.length); //just grab the most recent second of data
311-
float dotProd = calcDotProduct(fooData_filt, refData_uV);
312-
if (dotProd >= 0.0f) {
313-
polarity[channel]=1.0;
314-
} else {
315-
polarity[channel]=-1.0;
316-
}
317-
}
318-
319301
/////////////////////////////////////////////////////////////
320302
// Compute widget values independent of widgets being open //
321303
// -RW #1094 //

OpenBCI_GUI/HeadPlotEnums.pde

Lines changed: 0 additions & 114 deletions
This file was deleted.

0 commit comments

Comments
 (0)