Ideas/Assistance on how to add a custom Metric on W-Focus

ArnoldArnold Santa Clara
edited April 2023 in OpenBCI_GUI

Hello, I currently working on editing the default Focus widget with Processing 4 and I was hoping to add a third “Metric” setting under its dropdown that would output the PSD of Alpha frequency as a float variable. Currently, the “Metric” settings only allow “Relaxation” and “Concentration” that calculate frequency band values. I can’t seem to find the formulas used for this in OpenBCI or Brainflow documentation. (Would be helpful if someone can point me to them if they can)
Starting with This Portion:

// This is the protocol for setting up dropdowns.
dropdownWidth = 60; //Override the default dropdown width for this widget
addDropdown("focusMetricDropdown", "Metric", focusMetric.getEnumStringsAsList(), focusMetric.getIndex());

Is it possible to add my own metric if the existing dropdown is working off an existing focusMetric index? Is there any way I could edit that index?

Comments

Sign In or Register to comment.