@@ -277,14 +277,13 @@ class DataProcessing {
277277 headWidePower[i] = sum/ nchan; // averaging power over all channels
278278 }
279279
280- // find strongest channel
280+ // Calculate data used for Headplot
281+ // Find strongest channel
281282 int refChanInd = findMax(data_std_uV);
282283 // println("EEG_Processing: strongest chan (one referenced) = " + (refChanInd+1));
283284 float [] refData_uV = dataProcessingFilteredBuffer[refChanInd]; // use the filtered data
284285 refData_uV = Arrays . copyOfRange(refData_uV, refData_uV. length- ((int )fs_Hz), refData_uV. length); // just grab the most recent second of data
285-
286-
287- // compute polarity of each channel
286+ // Compute polarity of each channel
288287 for (int Ichan = 0 ; Ichan < nchan; Ichan ++ ) {
289288 float [] fooData_filt = dataProcessingFilteredBuffer[Ichan ]; // use the filtered data
290289 fooData_filt = Arrays . copyOfRange(fooData_filt, fooData_filt. length- ((int )fs_Hz), fooData_filt. length); // just grab the most recent second of data
@@ -296,7 +295,18 @@ class DataProcessing {
296295 }
297296 }
298297
299- // Compute EMG values independent of widgets
298+ // ///////////////////////////////////////////////////////////
299+ // Compute widget values independent of widgets being open //
300+ // -RW #1094 //
301+ // ///////////////////////////////////////////////////////////
300302 emgSettings. values. process(dataProcessingFilteredBuffer);
303+ w_focus. updateFocusWidgetData();
304+ w_bandPower. updateBandPowerWidgetData();
305+ w_emgJoystick. updateEmgJoystickWidgetData();
306+ if (w_pulsesensor != null ) {
307+ w_pulsesensor. updatePulseSensorWidgetData();
308+ }
309+
310+ w_networking. updateNetworkingWidgetData();
301311 }
302312}
0 commit comments