Week Two - Day One
Starting to touch upon the Emotiv EPOC C++ coding and learning how it works. (EE_EmoEngineEventGetEmoState( ) ) and (EE_EmoStateUpdated) are used to retrieve the updated EmoState. When starting to connect to the EmoEngine, always have a case in which you test:
if (EE_EngineConnect( ) != EDK_OK)
{
throw exception ("Emotiv Engine start up failed.");
}
break;
Buffers use memory temporarily to store information, whether an output or input, while the data is being transferred.
It's also important to always check for other error codes that would be returned from (EE_EngineGetNextEvent( ) ) such as if no events were published previously. At the end of the program, there must be a line that says (EE_EngineDisconnect( ) ) to terminate the connection and free up the resources. (EE_EmoStateFree( ) and EE_EmoEngineEventFree( ) ) also free up memory from the buffers (see above).
Skipping to (page 55) on the Emotiv SDK manual. The Cognitiv Demo explains how the output of the Cognitiv detection shows whether users are mentally engaged at a given time.
C++ static_cast< > ( ) is usually for when converting an integer into a double in the language, or giving the variable a type.
Up to 4 distinct actions may be distinguished using Cognitiv. Also, to maintain the quality of the EEG signal without interference, relaxing the face and neck is required as well as refraining from moving. Possibly being relaxed will help someone focus more and improve the EEG signal. When a game is too difficult, many players choose to rage quit or tense up the muscles on their face, contorting their face into strange expressions. I believe this is the same reason why players try to tilt their controllers to the right when turning right in a racing game. Believing that the movement of their physical body will aid in their progression at the task at hand. Being stressed during a game is probably counteractive because the players lack of focus goes down.
Today, we talked about implementing the learning process by recording the previous recording of the game and seeing where the block lands. (Because the block is being moved forward by the player thinking up and whenever the player loses focus, the block will fall). Next time, when the block is about to land where it is predicted to land, maybe soft music can gradually turn on as they get closer or the game generates a gradient color change that relaxes their brain allowing for less distractions and more time to think about getting past their first hurdle.
According to
http://www.huffingtonpost.com/2011/09/26/how-color-can-help-you work_n_982043.html, when someone is feeling unmotivated, the color purple will calm and rejuvenate the person into feeling motivated to continue working again. Purple has been used for healing and meditation and beneficial to pushing past mental blocks. Therefore in the game, maybe when it gets closer to the previous dropping point, the background could fade to purple.
I saw Linux as open source today because while installing the Emotiv SDKLite, it asked me for a password but I wasn't supposed to need one because it was being installed locally and therefore, one of them went into the code and actually commented the sudo part out which I didn't think was possible but I knew Linux was open source. I just didn't exactly understand the premise of open source. Which is that you can change any code and add or take away commands from programs to essentially make it how you want it.
GitHub, a repository for codes and sources where people can fork codes and pull request them to share and update various codes around the world. This way, one programmer who creates code can share it with the world so that others can import their code without copying and pasting it.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRyS-b_Wm1X9GW3gTUpxzDIbZM0IYo_Sfsqdxit0mFzONTfICyRxr2h4K4DeNGZG8Rx7aSFunS82xxcUURNd1wAWw3kvD1rD_0TpktGR_dJQFLpc_SPHzQ-5A9C1wPMT4c57lU1rfmgn9-/s1600/EmotivSDK.png) |
EmoComposer and Emotiv Control Panel both working together. Must first connect the Emotiv Control Panel to the EmoComposer before using them. (Select Connect tab and then press To EmoComposer...) |
*Good Posture = Good Presence*