Exemple #1
0
        private void MS_BrainWaveChanged(object sender, BrainWaveEventArgs e)
        {
            RobotDriver.Stop();

            if (InvokeRequired)
            {
                Invoke(new Action(() =>
                {
                    Text = $"att level is very low!! => {e.AttentionLevel}, med = {e.MeditationLevel}, poor = {e.PoorSignalLevel}";
                }));
            }
            else
            {
                Text = $"att = {e.AttentionLevel}, med = {e.MeditationLevel}, poor = {e.PoorSignalLevel}";
            }
        }
 public void OnBrainDataChanged(BrainWaveEventArgs bwea) => BrainWaveChanged?.Invoke(this, bwea);
 private void MindData_BrainWaveChanged(object sender, BrainWaveEventArgs e)
 {
     // when brain activity goes below predefined threshold values
 }