Data split into variables, and mapping test

This code is fairly simple, but the accomplishment is allowing the arduino and processing link to run in the background always gathering data, while the environment and designers makes use of that data, without interrupting the flow of either.

There is always data flowing, but it does not effect the current action until it is accomplished and data is read from the Arduino again.  This can be tweaked later, to enable a more dependent design.

This code sets the position.z of the cube to equal the GSR data coming from the Arduino and smoothly moves the cube between those positions.  This basic action will be explored further collaboratively between two player/designers passing an object back and forth.

In this video you can see the data gather blocks executing every .5 seconds, while the motion code executes every frame until it resets upon reaching the requested position, it gathers another value from the text file and moves to that position.

Advertisements
This entry was posted in Thesis. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s